From c84c1d07b7b5413d91bbea971af4734d2103f096 Mon Sep 17 00:00:00 2001 From: Edward Jiang Date: Fri, 27 Sep 2024 18:02:04 -0700 Subject: [PATCH] Add cake --- src/JuliaFormatter.jl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/JuliaFormatter.jl b/src/JuliaFormatter.jl index 96818a13..43bf3e54 100644 --- a/src/JuliaFormatter.jl +++ b/src/JuliaFormatter.jl @@ -446,6 +446,9 @@ function format(path::AbstractString, options::Configuration) is_formatted = format(subpath, options) Threads.atomic_and!(formatted, is_formatted) end + if formatted.value + println("Well done! ✨ 🍰 ✨") + end return formatted.value end # `path` is not a directory but a file @@ -454,7 +457,11 @@ function format(path::AbstractString, options::Configuration) return true end try - return _format_file(path; [Symbol(k) => v for (k, v) in pairs(options)]...) + formatted = _format_file(path; [Symbol(k) => v for (k, v) in pairs(options)]...) + if formatted + println("Well done! ✨ 🍰 ✨") + end + return formatted catch err @info "Error in formatting file $path" @debug "formatting failed due to" exception = (err, catch_backtrace())