Add a command for cleaning up old targets.

This commit is contained in:
Tom Alexander
2026-09-03 21:46:10 -04:00
parent c994952ab3
commit 05ef6bfd39
7 changed files with 83 additions and 20 deletions

View File

@@ -18,6 +18,9 @@ pub(crate) enum Commands {
/// Run a single build.
Build(BuildArgs),
/// Clean up builds.
Clean(CleanArgs),
/// Launch a daemon to run builds.
Daemon(DaemonArgs),
@@ -36,6 +39,13 @@ pub(crate) struct BuildArgs {
pub(crate) target: Vec<String>,
}
#[derive(Args, Debug)]
pub(crate) struct CleanArgs {
/// Path to the nix_builder config file.
#[arg(short, long)]
pub(crate) config: PathBuf,
}
#[derive(Args, Debug)]
pub(crate) struct DaemonArgs {
/// Path to the nix_builder config file.