Skip to content

Commit 5e8a689

Browse files
javorszkyac000
authored andcommitted
tools/unitctl: rename app -> apps, fix readme
Signed-off-by: Gabor Javorszky <[email protected]>
1 parent 63148a3 commit 5e8a689

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tools/unitctl/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Commands:
6363
execute Sends raw JSON payload to Unit
6464
status Get the current status of Unit
6565
listeners List active listeners
66+
apps List all configured Unit applications
6667
help Print this message or the help of the given subcommand(s)
6768
6869
Options:
@@ -150,7 +151,7 @@ Unitctl can also request from the API that an application be restarted.
150151

151152
Listing applications:
152153
```
153-
$ unitctl app list
154+
$ unitctl apps list
154155
{
155156
"wasm": {
156157
"type": "wasm-wasi-component",
@@ -161,7 +162,7 @@ $ unitctl app list
161162

162163
Restarting an application:
163164
```
164-
$ unitctl app reload wasm
165+
$ unitctl apps reload wasm
165166
{
166167
"success": "Ok"
167168
}

tools/unitctl/unitctl/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async fn main() -> Result<(), UnitctlError> {
3434
match cli.command {
3535
Commands::Instances(args) => instances::cmd(args).await,
3636

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

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

tools/unitctl/unitctl/src/unitctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ pub(crate) enum Commands {
127127
},
128128

129129
#[command(about = "List all configured Unit applications")]
130-
App(ApplicationArgs),
130+
Apps(ApplicationArgs),
131131

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

0 commit comments

Comments
 (0)