Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Rename "uninstall" to "remove/rm"
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof committed Sep 18, 2019
1 parent c9eb813 commit 0db8433
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ Commands:
push Push an application package to a registry
render Render the Compose file for an Application Package
status Get the installation status of an application
uninstall Uninstall an application
rm Remove an application
upgrade Upgrade an installed application
validate Checks the rendered application is syntactically correct
version Print version information
Expand Down
4 changes: 2 additions & 2 deletions e2e/cnab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func TestCallCustomStatusAction(t *testing.T) {

// docker app uninstall
defer func() {
cmd.Command = dockerCli.Command("app", "uninstall", testCase.name)
cmd.Command = dockerCli.Command("app", "rm", testCase.name)
icmd.RunCmd(cmd).Assert(t, icmd.Success)
}()

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

// docker app uninstall
defer func() {
cmd.Command = dockerCli.Command("app", "uninstall", "cnab-parameters")
cmd.Command = dockerCli.Command("app", "rm", "cnab-parameters")
icmd.RunCmd(cmd).Assert(t, icmd.Success)
}()

Expand Down
2 changes: 1 addition & 1 deletion e2e/commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ STATUS
icmd.RunCmd(cmd).Assert(t, icmd.Expected{ExitCode: 0, Out: "8081"})

// Uninstall the application
cmd.Command = dockerCli.Command("app", "uninstall", appName)
cmd.Command = dockerCli.Command("app", "rm", appName)
checkContains(t, icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(),
[]string{
fmt.Sprintf("Removing service %s_api", appName),
Expand Down
2 changes: 1 addition & 1 deletion e2e/pushpull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func TestPushInstallBundle(t *testing.T) {
assert.Check(t, cmp.Contains(icmd.RunCmd(cmd).Assert(t, icmd.Success).Combined(), ref))

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

cmd.Command = dockerCli.Command("service", "ls")
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/plugin-usage-experimental.golden
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Commands:
pull Pull an application package from a registry
push Push an application package to a registry
render Render the Compose file for an Application Package
rm Remove an application
status Get the installation status of an application
uninstall Uninstall an application
upgrade Upgrade an installed application
validate Checks the rendered application is syntactically correct
version Print version information
Expand Down
2 changes: 1 addition & 1 deletion e2e/testdata/plugin-usage.golden
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Commands:
pull Pull an application package from a registry
push Push an application package to a registry
render Render the Compose file for an Application Package
rm Remove an application
status Get the installation status of an application
uninstall Uninstall an application
upgrade Upgrade an installed application
validate Checks the rendered application is syntactically correct
version Print version information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ func uninstallCmd(dockerCli command.Cli) *cobra.Command {
var opts uninstallOptions

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

0 comments on commit 0db8433

Please sign in to comment.