Open
Description
The current implementation from #12634 exposes a cargo clean gc
subcommand to handle manually cleaning cache data. It is not clear what the final CLI design should be (and it is not clear exactly what the user scenarios are for when they would want to take manual control). This issue is tracking for determining what the CLI should look like. There are few different considerations:
- What should the actual subcommand be called? There were a few different considerations:
cargo cache
is already in use by a third-party commandcargo gc
(reserved by a third-party, but unused), was part of early proposals (cargo doesn't handle unstable top-level subcommands very well)cargo clean gc
— the current implementationcargo clean
— just fold the functionality into a single command which handles cleaning caches. @epage has concerns that this is overloading a subcommand used for different types of caches (local vs global, etc.).cargo maintenance
— just an idea stolen from git
- How does this evolve with cleaning target directories, global build caches, etc.?
- Which flags should be exposed? Currently it exposes a large number of low-level flags. Ideally I would like to only stabilize a small number of higher-level flags. But I don't know what the high-level user scenarios might be, so I'm uncertain exactly what to expose.
- For example, one idea is to have a flag for "things that can be recreated" and another for "things that require downloading".
- Also bikeshed the names of the options.