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 (
99
1010func (r * runners ) InitRegistryRemove (parent * cobra.Command ) * cobra.Command {
1111 cmd := & cobra.Command {
12- Use : "rm [ENDPOINT ]" ,
12+ Use : "rm [NAME ]" ,
1313 Aliases : []string {"delete" },
1414 Short : "remove registry" ,
15- Long : `remove registry by endpoint ` ,
15+ Long : `remove registry by name ` ,
1616 RunE : r .removeRegistry ,
1717 SilenceUsage : true ,
1818 }
@@ -23,7 +23,7 @@ func (r *runners) InitRegistryRemove(parent *cobra.Command) *cobra.Command {
2323
2424func (r * runners ) removeRegistry (_ * cobra.Command , args []string ) error {
2525 if len (args ) == 0 {
26- return errors .New ("missing registry endpoint " )
26+ return errors .New ("missing registry name " )
2727 }
2828
2929 if err := r .kotsAPI .RemoveRegistry (args [0 ]); err != nil {
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import (
1111
1212func (r * runners ) InitRegistryTest (parent * cobra.Command ) {
1313 cmd := & cobra.Command {
14- Use : "test HOSTNAME " ,
14+ Use : "test NAME " ,
1515 Short : "test registry" ,
1616 Long : `test registry` ,
1717 SilenceUsage : true ,
@@ -26,13 +26,13 @@ func (r *runners) InitRegistryTest(parent *cobra.Command) {
2626
2727func (r * runners ) registryTest (cmd * cobra.Command , args []string ) error {
2828 if len (args ) != 1 {
29- return errors .New ("missing endpoint " )
29+ return errors .New ("missing registry name " )
3030 }
31- hostname := args [0 ]
31+ name := args [0 ]
3232
3333 kotsRestClient := kotsclient.VendorV3Client {HTTPClient : * r .platformAPI }
3434
35- status , err := kotsRestClient .TestKOTSRegistry (hostname , r .args .testRegistryImage )
35+ status , err := kotsRestClient .TestKOTSRegistry (name , r .args .testRegistryImage )
3636 if err != nil {
3737 return errors .Wrap (err , "test registry" )
3838 }
You can’t perform that action at this time.
0 commit comments