diff options
Diffstat (limited to 'tools/unitctl')
-rw-r--r-- | tools/unitctl/README.md | 2 | ||||
-rw-r--r-- | tools/unitctl/unitctl/src/cmd/applications.rs | 2 | ||||
-rw-r--r-- | tools/unitctl/unitctl/src/unitctl.rs | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tools/unitctl/README.md b/tools/unitctl/README.md index 1a5fcb9d..bcd31006 100644 --- a/tools/unitctl/README.md +++ b/tools/unitctl/README.md @@ -163,7 +163,7 @@ $ unitctl apps list Restarting an application: ``` -$ unitctl apps reload wasm +$ unitctl apps restart wasm { "success": "Ok" } diff --git a/tools/unitctl/unitctl/src/cmd/applications.rs b/tools/unitctl/unitctl/src/cmd/applications.rs index 41af679e..b0145724 100644 --- a/tools/unitctl/unitctl/src/cmd/applications.rs +++ b/tools/unitctl/unitctl/src/cmd/applications.rs @@ -12,7 +12,7 @@ pub(crate) async fn cmd(cli: &UnitCtl, args: &ApplicationArgs) -> Result<(), Uni for client in clients { let _ = match &args.command { - ApplicationCommands::Reload { ref name } => client + ApplicationCommands::Restart { ref name } => client .restart_application(name) .await .map_err(|e| UnitctlError::UnitClientError { source: *e }) diff --git a/tools/unitctl/unitctl/src/unitctl.rs b/tools/unitctl/unitctl/src/unitctl.rs index 460c7e7b..43f2b777 100644 --- a/tools/unitctl/unitctl/src/unitctl.rs +++ b/tools/unitctl/unitctl/src/unitctl.rs @@ -194,8 +194,8 @@ pub struct ApplicationArgs { #[derive(Debug, Subcommand)] #[command(args_conflicts_with_subcommands = true)] pub enum ApplicationCommands { - #[command(about = "reload a running application")] - Reload { + #[command(about = "restart a running application")] + Restart { #[arg(required = true, help = "name of application")] name: String, }, |