Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit 24b127c

Browse files
committed
Rename "uninstall" to "remove/rm"
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent e45cba1 commit 24b127c

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Commands:
362362
push Push an application package to a registry
363363
render Render the Compose file for an Application Package
364364
status Get the installation status of an application
365-
uninstall Uninstall an application
365+
rm Remove an application
366366
upgrade Upgrade an installed application
367367
validate Checks the rendered application is syntactically correct
368368

e2e/cnab_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestCallCustomStatusAction(t *testing.T) {
5555

5656
// docker app uninstall
5757
defer func() {
58-
cmd.Command = dockerCli.Command("app", "uninstall", testCase.name)
58+
cmd.Command = dockerCli.Command("app", "rm", testCase.name)
5959
icmd.RunCmd(cmd).Assert(t, icmd.Success)
6060
}()
6161

@@ -79,7 +79,7 @@ func TestCnabParameters(t *testing.T) {
7979

8080
// docker app uninstall
8181
defer func() {
82-
cmd.Command = dockerCli.Command("app", "uninstall", "cnab-parameters")
82+
cmd.Command = dockerCli.Command("app", "rm", "cnab-parameters")
8383
icmd.RunCmd(cmd).Assert(t, icmd.Success)
8484
}()
8585

e2e/commands_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ STATUS
362362
icmd.RunCmd(cmd).Assert(t, icmd.Expected{ExitCode: 0, Out: "8081"})
363363

364364
// Uninstall the application
365-
cmd.Command = dockerCli.Command("app", "uninstall", appName)
365+
cmd.Command = dockerCli.Command("app", "rm", appName)
366366
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
367367
[]string{
368368
fmt.Sprintf("Removing service %s_api", appName),

e2e/pushpull_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func TestPushInstallBundle(t *testing.T) {
258258
assert.Check(t, cmp.Contains(icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(), ref))
259259

260260
// ensure it doesn't confuse the next test
261-
cmd.Command = dockerCli.Command("app", "uninstall", name)
261+
cmd.Command = dockerCli.Command("app", "rm", name)
262262
icmd.RunCmd(cmd).Assert(t, icmd.Success)
263263

264264
cmd.Command = dockerCli.Command("service", "ls")

e2e/testdata/plugin-usage-experimental.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Commands:
1515
pull Pull an application package from a registry
1616
push Push an application package to a registry
1717
render Render the Compose file for an Application Package
18+
rm Remove an application
1819
status Get the installation status of an application
19-
uninstall Uninstall an application
2020
upgrade Upgrade an installed application
2121
validate Checks the rendered application is syntactically correct
2222

e2e/testdata/plugin-usage.golden

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ Commands:
1515
pull Pull an application package from a registry
1616
push Push an application package to a registry
1717
render Render the Compose file for an Application Package
18+
rm Remove an application
1819
status Get the installation status of an application
19-
uninstall Uninstall an application
2020
upgrade Upgrade an installed application
2121
validate Checks the rendered application is syntactically correct
2222

internal/commands/uninstall.go renamed to internal/commands/remove.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ func uninstallCmd(dockerCli command.Cli) *cobra.Command {
2020
var opts uninstallOptions
2121

2222
cmd := &cobra.Command{
23-
Use: "uninstall INSTALLATION_NAME [--target-context TARGET_CONTEXT] [OPTIONS]",
24-
Short: "Uninstall an application",
25-
Example: `$ docker app uninstall myinstallation --target-context=mycontext`,
23+
Use: "rm INSTALLATION_NAME [--target-context TARGET_CONTEXT] [OPTIONS]",
24+
Short: "Remove an application",
25+
Aliases: []string{"remove"},
26+
Example: `$ docker app rm myinstallation --target-context=mycontext`,
2627
Args: cli.ExactArgs(1),
2728
RunE: func(cmd *cobra.Command, args []string) error {
2829
return runUninstall(dockerCli, args[0], opts)

0 commit comments

Comments
 (0)