@@ -11,13 +11,13 @@ import (
11
11
"github.com/spf13/cobra"
12
12
)
13
13
14
- type uninstallOptions struct {
14
+ type removeOptions struct {
15
15
credentialOptions
16
16
force bool
17
17
}
18
18
19
- func uninstallCmd (dockerCli command.Cli ) * cobra.Command {
20
- var opts uninstallOptions
19
+ func removeCmd (dockerCli command.Cli ) * cobra.Command {
20
+ var opts removeOptions
21
21
22
22
cmd := & cobra.Command {
23
23
Use : "rm INSTALLATION_NAME [--target-context TARGET_CONTEXT] [OPTIONS]" ,
@@ -26,7 +26,7 @@ func uninstallCmd(dockerCli command.Cli) *cobra.Command {
26
26
Example : `$ docker app rm myinstallation --target-context=mycontext` ,
27
27
Args : cli .ExactArgs (1 ),
28
28
RunE : func (cmd * cobra.Command , args []string ) error {
29
- return runUninstall (dockerCli , args [0 ], opts )
29
+ return runRemove (dockerCli , args [0 ], opts )
30
30
},
31
31
}
32
32
opts .addFlags (cmd .Flags ())
@@ -35,7 +35,7 @@ func uninstallCmd(dockerCli command.Cli) *cobra.Command {
35
35
return cmd
36
36
}
37
37
38
- func runUninstall (dockerCli command.Cli , installationName string , opts uninstallOptions ) (mainErr error ) {
38
+ func runRemove (dockerCli command.Cli , installationName string , opts removeOptions ) (mainErr error ) {
39
39
defer muteDockerCli (dockerCli )()
40
40
opts .SetDefaultTargetContext (dockerCli )
41
41
@@ -79,7 +79,7 @@ func runUninstall(dockerCli command.Cli, installationName string, opts uninstall
79
79
if err2 := installationStore .Store (installation ); err2 != nil {
80
80
return fmt .Errorf ("%s while %s" , err2 , errBuf )
81
81
}
82
- return fmt .Errorf ("Uninstall failed: %s\n %s" , err , errBuf )
82
+ return fmt .Errorf ("Remove failed: %s\n %s" , err , errBuf )
83
83
}
84
84
if err := installationStore .Delete (installationName ); err != nil {
85
85
return fmt .Errorf ("Failed to delete installation %q from the installation store: %s" , installationName , err )
0 commit comments