From f86aa44deddd3a542566be40924beb9952a25442 Mon Sep 17 00:00:00 2001 From: Dominique Luna Date: Mon, 7 Oct 2024 02:27:01 -0400 Subject: [PATCH] add verbose flag for well done text --- src/JuliaFormatter.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/JuliaFormatter.jl b/src/JuliaFormatter.jl index bf83e6f3..84d86bc4 100644 --- a/src/JuliaFormatter.jl +++ b/src/JuliaFormatter.jl @@ -435,10 +435,10 @@ function format(paths, options::Configuration)::Bool return already_formatted end -function format(path::AbstractString; options...) +function format(path::AbstractString; verbose::Bool = false, options...) formatted = format(path, Configuration(Dict{String,Any}(String(k) => v for (k, v) in options))) - if formatted + if verbose && formatted println("Well done! ✨ 🍰 ✨") end return formatted