diff --git a/src/cli/subcommands/adduser.rs b/src/cli/subcommands/adduser.rs index cfd6e08..1edc9c5 100644 --- a/src/cli/subcommands/adduser.rs +++ b/src/cli/subcommands/adduser.rs @@ -49,6 +49,10 @@ impl CliSubcommand for AddUserSubcommand { type PromptUserData = AddUserData; type CommandData = UsernameArgument; + fn proc_title() -> String { + "shadyurl-rust [add-user]".to_string() + } + fn prompt_user() -> Result { let mut password = prompt_password("Password:")?; if password != prompt_password("Repeat password:")? { diff --git a/src/cli/subcommands/changepassword.rs b/src/cli/subcommands/changepassword.rs index 96d83a2..c96335f 100644 --- a/src/cli/subcommands/changepassword.rs +++ b/src/cli/subcommands/changepassword.rs @@ -49,6 +49,10 @@ impl CliSubcommand for ChangePasswordSubcommand { type PromptUserData = ChangePasswordData; type CommandData = UsernameArgument; + fn proc_title() -> String { + "shadyurl-rust [change-password]".to_string() + } + fn prompt_user() -> Result { let mut password = prompt_password("Password:")?; if password != prompt_password("Repeat password:")? { diff --git a/src/cli/subcommands/deleteuser.rs b/src/cli/subcommands/deleteuser.rs index 8b05365..2bea356 100644 --- a/src/cli/subcommands/deleteuser.rs +++ b/src/cli/subcommands/deleteuser.rs @@ -47,6 +47,10 @@ impl CliSubcommand for DeleteUserSubcommand { type PromptUserData = (); type CommandData = UsernameArgument; + fn proc_title() -> String { + "shadyurl-rust [delete-user]".to_string() + } + fn prompt_user() -> Result { let mut response = String::new(); loop { diff --git a/src/cli/subcommands/generatekeys.rs b/src/cli/subcommands/generatekeys.rs index f59da70..6cccce7 100644 --- a/src/cli/subcommands/generatekeys.rs +++ b/src/cli/subcommands/generatekeys.rs @@ -32,6 +32,10 @@ impl CliSubcommand for GenerateKeysSubcommand { type PromptUserData = (); type CommandData = (); + fn proc_title() -> String { + "shadyurl-rust [generate-keys]".to_string() + } + fn prompt_user() -> Result { Ok(()) } diff --git a/src/cli/subcommands/run.rs b/src/cli/subcommands/run.rs index 6e3e7cc..a440176 100644 --- a/src/cli/subcommands/run.rs +++ b/src/cli/subcommands/run.rs @@ -27,6 +27,10 @@ impl CliSubcommand for RunSubcommand { type PromptUserData = (); type CommandData = (); + fn proc_title() -> String { + "shadyurl-rust [running]".to_string() + } + fn prompt_user() -> Result { Ok(()) }