Skip to content

Commit

Permalink
unitctl: rename app -> apps, fix readme
Browse files Browse the repository at this point in the history
Signed-off-by: Gabor Javorszky <g.javorszky@f5.com>
  • Loading branch information
javorszky committed Sep 16, 2024
1 parent 3a6a979 commit 0ef0ce4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tools/unitctl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Commands:
execute Sends raw JSON payload to Unit
status Get the current status of Unit
listeners List active listeners
apps List all configured Unit applications
help Print this message or the help of the given subcommand(s)
Options:
Expand Down Expand Up @@ -150,7 +151,7 @@ Unitctl can also request from the API that an application be restarted.

Listing applications:
```
$ unitctl app list
$ unitctl apps list
{
"wasm": {
"type": "wasm-wasi-component",
Expand All @@ -161,7 +162,7 @@ $ unitctl app list

Restarting an application:
```
$ unitctl app reload wasm
$ unitctl apps reload wasm
{
"success": "Ok"
}
Expand Down
2 changes: 1 addition & 1 deletion tools/unitctl/unitctl/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn main() -> Result<(), UnitctlError> {
match cli.command {
Commands::Instances(args) => instances::cmd(args).await,

Commands::App(ref args) => applications::cmd(&cli, args).await,
Commands::Apps(ref args) => applications::cmd(&cli, args).await,

Commands::Edit { output_format } => edit::cmd(&cli, output_format).await,

Expand Down
2 changes: 1 addition & 1 deletion tools/unitctl/unitctl/src/unitctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ pub(crate) enum Commands {
},

#[command(about = "List all configured Unit applications")]
App(ApplicationArgs),
Apps(ApplicationArgs),

#[command(about = "Export the current configuration of UNIT")]
Export {
Expand Down

0 comments on commit 0ef0ce4

Please sign in to comment.