Skip to content

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