File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ import (
9
9
10
10
func (r * runners ) InitRegistryRemove (parent * cobra.Command ) * cobra.Command {
11
11
cmd := & cobra.Command {
12
- Use : "rm [ENDPOINT ]" ,
12
+ Use : "rm [NAME ]" ,
13
13
Aliases : []string {"delete" },
14
14
Short : "remove registry" ,
15
- Long : `remove registry by endpoint ` ,
15
+ Long : `remove registry by name ` ,
16
16
RunE : r .removeRegistry ,
17
17
SilenceUsage : true ,
18
18
}
@@ -23,7 +23,7 @@ func (r *runners) InitRegistryRemove(parent *cobra.Command) *cobra.Command {
23
23
24
24
func (r * runners ) removeRegistry (_ * cobra.Command , args []string ) error {
25
25
if len (args ) == 0 {
26
- return errors .New ("missing registry endpoint " )
26
+ return errors .New ("missing registry name " )
27
27
}
28
28
29
29
if err := r .kotsAPI .RemoveRegistry (args [0 ]); err != nil {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
11
11
12
12
func (r * runners ) InitRegistryTest (parent * cobra.Command ) {
13
13
cmd := & cobra.Command {
14
- Use : "test HOSTNAME " ,
14
+ Use : "test NAME " ,
15
15
Short : "test registry" ,
16
16
Long : `test registry` ,
17
17
SilenceUsage : true ,
@@ -26,13 +26,13 @@ func (r *runners) InitRegistryTest(parent *cobra.Command) {
26
26
27
27
func (r * runners ) registryTest (cmd * cobra.Command , args []string ) error {
28
28
if len (args ) != 1 {
29
- return errors .New ("missing endpoint " )
29
+ return errors .New ("missing registry name " )
30
30
}
31
- hostname := args [0 ]
31
+ name := args [0 ]
32
32
33
33
kotsRestClient := kotsclient.VendorV3Client {HTTPClient : * r .platformAPI }
34
34
35
- status , err := kotsRestClient .TestKOTSRegistry (hostname , r .args .testRegistryImage )
35
+ status , err := kotsRestClient .TestKOTSRegistry (name , r .args .testRegistryImage )
36
36
if err != nil {
37
37
return errors .Wrap (err , "test registry" )
38
38
}
You can’t perform that action at this time.
0 commit comments