Skip to content

Commit e064502

Browse files
authored
Update rm/test help references to use name (#575)
1 parent d39a2c6 commit e064502

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

cli/cmd/registry_rm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99

1010
func (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

2424
func (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 {

cli/cmd/registry_validate.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
func (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

2727
func (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
}

0 commit comments

Comments
 (0)