From 965ab02bfe67ca22574c13489268d635046285e6 Mon Sep 17 00:00:00 2001 From: Dominique Luna Date: Mon, 7 Oct 2024 02:38:39 -0400 Subject: [PATCH] pass verbose --- Project.toml | 2 +- src/JuliaFormatter.jl | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index a34107e9..af6fd44b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "JuliaFormatter" uuid = "98e50ef6-434e-11e9-1051-2b60c6c9e899" authors = ["Dominique Luna "] -version = "1.0.61" +version = "1.0.62" [deps] CSTParser = "00ebfdb7-1f24-5e51-bd34-a7502290713f" diff --git a/src/JuliaFormatter.jl b/src/JuliaFormatter.jl index 84d86bc4..edd86335 100644 --- a/src/JuliaFormatter.jl +++ b/src/JuliaFormatter.jl @@ -436,8 +436,9 @@ function format(paths, options::Configuration)::Bool end function format(path::AbstractString; verbose::Bool = false, options...) - formatted = - format(path, Configuration(Dict{String,Any}(String(k) => v for (k, v) in options))) + config = Dict{String,Any}(String(k) => v for (k, v) in options) + config["verbose"] = verbose + formatted = format(path, Configuration(config)) if verbose && formatted println("Well done! ✨ 🍰 ✨") end