Skip to content

Commit 15f7650

Browse files
avahahnac000
authored andcommitted
tools/unitctl: change reload to restart
Signed-off-by: Ava Hahn <[email protected]> Signed-off-by: Andrew Clayton <[email protected]>
1 parent 7c48546 commit 15f7650

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tools/unitctl/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ $ unitctl apps list
163163

164164
Restarting an application:
165165
```
166-
$ unitctl apps reload wasm
166+
$ unitctl apps restart wasm
167167
{
168168
"success": "Ok"
169169
}

tools/unitctl/unitctl/src/cmd/applications.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pub(crate) async fn cmd(cli: &UnitCtl, args: &ApplicationArgs) -> Result<(), Uni
1212

1313
for client in clients {
1414
let _ = match &args.command {
15-
ApplicationCommands::Reload { ref name } => client
15+
ApplicationCommands::Restart { ref name } => client
1616
.restart_application(name)
1717
.await
1818
.map_err(|e| UnitctlError::UnitClientError { source: *e })

tools/unitctl/unitctl/src/unitctl.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ pub struct ApplicationArgs {
194194
#[derive(Debug, Subcommand)]
195195
#[command(args_conflicts_with_subcommands = true)]
196196
pub enum ApplicationCommands {
197-
#[command(about = "reload a running application")]
198-
Reload {
197+
#[command(about = "restart a running application")]
198+
Restart {
199199
#[arg(required = true, help = "name of application")]
200200
name: String,
201201
},

0 commit comments

Comments
 (0)