Add status command

This commit is contained in:
2021-11-19 22:12:31 +01:00
parent c0172f9af5
commit 5f0ec0fec8
6 changed files with 542 additions and 2 deletions

View File

@@ -26,6 +26,8 @@ pub enum SubCommand {
Sync(Sync),
#[clap(about = "Generate a repository configuration from an existing file tree")]
Find(Find),
#[clap(about = "Show status of configured repositories")]
Status(OptionalConfig),
}
#[derive(Parser)]
@@ -40,6 +42,17 @@ pub struct Sync {
pub config: String,
}
#[derive(Parser)]
#[clap()]
pub struct OptionalConfig {
#[clap(
short,
long,
about = "Path to the configuration file"
)]
pub config: Option<String>,
}
#[derive(Parser)]
pub struct Find {
#[clap(about = "The path to search through")]