pub struct Cli {
pub json: bool,
pub list: bool,
pub min_stale: Option<Duration>,
pub types: Vec<BuildToolKind>,
pub dry_run: bool,
pub yes: bool,
pub archive: bool,
pub directories: Vec<PathBuf>,
}
Expand description
Options
Fields§
§json: bool
JSON output (default when stdout is piped)
When present, either --dry-run
or --yes
is required.
list: bool
Lists projects only.
min_stale: Option<Duration>
Projects that were modified more recently than this are ignored.
With --list
, this defaults to 0, otherwise to one month.
Examples: 1d = a day, 2w = two weeks, 1m = a month, 1y = a year.
types: Vec<BuildToolKind>
Only consider projects that use the given build tool. Use more than once for multiple project types. By default, all known project types are considered.
For example, to consider Cargo and NPM projects:
makeclean -t cargo -t npm
dry_run: bool
Dry run - prints what would happen but doesn’t actually remove/change anything.
yes: bool
Automatically execute without asking, i.e., skipping the prompt.
archive: bool
Additionally compress cleaned projects.
After cleaning a project, its contents are moved into a tar.xz file. To
restore the project, use tar
(which is probably already installed on
your system):
cd path/to/project && tar -xaf project-name.tar.xz && rm project-name.tar.xz
directories: Vec<PathBuf>
Recursively searches for project in these directories
Trait Implementations§
source§impl CommandFactory for Cli
impl CommandFactory for Cli
source§fn into_app_for_update<'b>() -> Command<'b>
fn into_app_for_update<'b>() -> Command<'b>
CommandFactory::command_for_update
source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
ArgMatches
to self
.