Skip to content

Commit

Permalink
refactor(target-api): rename cmd name from 'target' to 'registry'
Browse files Browse the repository at this point in the history
close #40
  • Loading branch information
moooofly committed Jan 3, 2019
1 parent f4f1c25 commit 72103c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/target.go → cmd/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ var targetsURL string

// targetCmd represents the target command
var targetCmd = &cobra.Command{
Use: "target",
Use: "registry",
Short: "'/targets' API.",
Long: `The subcommand of '/targets' hierachy.`,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
targetsURL = utils.URLGen("/api/targets")
},
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("Use \"harborctl target --help\" for more information about this command.")
fmt.Println("Use \"harborctl registry --help\" for more information about this command.")
},
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 72103c5

Please sign in to comment.