Skip to content

Commit

Permalink
add verbose flag for well done text
Browse files Browse the repository at this point in the history
  • Loading branch information
domluna committed Oct 7, 2024
1 parent 82036b7 commit f86aa44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/JuliaFormatter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit f86aa44

@domluna
Copy link
Owner Author

@domluna domluna commented on f86aa44 Oct 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/116724

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.0.61 -m "<description of version>" f86aa44deddd3a542566be40924beb9952a25442
git push origin v1.0.61

Please sign in to comment.