diff --git a/src/cli.rs b/src/cli.rs index 5d7b628..7724873 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -15,10 +15,15 @@ pub struct Cli { #[derive(Debug, Subcommand)] pub enum Commands { + /// list all profiles List(ListArgs), + /// use a profile Use(UseArgs), + /// add a profile Add(AddArgs), + /// remove a profile Remove(RemoveArgs), + /// show current git user Current(CurrentArgs), } @@ -58,7 +63,9 @@ impl ListArgs { #[derive(Debug, Args)] pub struct UseArgs { + /// name of the profile to use pub profile_name: String, + /// whether or not to use it in the global context #[arg(short, long)] pub global: bool, } @@ -82,9 +89,12 @@ impl UseArgs { #[derive(Debug, Args)] pub struct AddArgs { + /// name of the profile to add pub profile_name: String, + /// git user.name #[arg(long)] pub name: String, + /// git user.email #[arg(long)] pub email: String, } @@ -110,6 +120,7 @@ impl AddArgs { #[derive(Debug, Args)] pub struct RemoveArgs { + /// name of the profile to remove pub profile_name: String, } @@ -130,6 +141,7 @@ impl RemoveArgs { #[derive(Debug, Args)] pub struct CurrentArgs { #[arg(short, long)] + /// whether or not to use it in the global context pub global: bool, }