Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add all mode and quiet mode #53

Merged
merged 1 commit into from
Jan 5, 2022
Merged

add all mode and quiet mode #53

merged 1 commit into from
Jan 5, 2022

Conversation

tbillington
Copy link
Owner

This PR adds 2 new arguments to the kondo command line tool. Inspired by this issue #52.

-a/--all flag will clean all projects found in the directories specified without prompting the user.

-q/--quiet flag will cause kondo to only print the totals at the conclusion of the run. Supplying quiet twice will silence all output. The quiet flag is only available when the all flag (above) is also supplied.

3 examples of the flags using kondo against it's own project directory.

> ./kondoc -a
/Users/choc/code/kondo Cargo project
  └─ target (428.6MiB)
  deleted 428.6MiB

Projects cleaned 1, Bytes deleted: 428.6MiB
>
> ./kondoc -a -q
Projects cleaned: 1, Bytes deleted: 280.1MiB
>
> ./kondoc -a -qq
>

@tbillington tbillington merged commit 1088821 into master Jan 5, 2022
@tbillington tbillington deleted the all-mode branch January 5, 2022 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant