Skip to content

Commit

Permalink
Improve "orb process" help text (#131)
Browse files Browse the repository at this point in the history
* Improve "orb process" help text

Make command line short descriptions consistent
  • Loading branch information
eric-hu authored Sep 26, 2018
1 parent c56d974 commit 3b583f3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cmd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func newConfigCommand() *cobra.Command {

migrateCommand := &cobra.Command{
Use: "migrate",
Short: "migrate a pre-release 2.0 config to the official release version",
Short: "Migrate a pre-release 2.0 config to the official release version",
RunE: migrateConfig,
Hidden: true,
DisableFlagParsing: true,
Expand Down
2 changes: 1 addition & 1 deletion cmd/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func newNamespaceCommand() *cobra.Command {

createCmd := &cobra.Command{
Use: "create <name> <vcs-type> <org-name>",
Short: "create a namespace",
Short: "Create a namespace",
RunE: createNamespace,
Args: cobra.ExactArgs(3),
Annotations: make(map[string]string),
Expand Down
12 changes: 6 additions & 6 deletions cmd/orb.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func newOrbCommand() *cobra.Command {

validateCommand := &cobra.Command{
Use: "validate <path>",
Short: "validate an orb.yml",
Short: "Validate an orb.yml",
RunE: validateOrb,
Args: cobra.ExactArgs(1),
Annotations: make(map[string]string),
Expand All @@ -48,7 +48,7 @@ func newOrbCommand() *cobra.Command {

processCommand := &cobra.Command{
Use: "process <path>",
Short: "process an orb",
Short: "Validate an orb and print its form after all pre-registration processing",
RunE: processOrb,
Args: cobra.ExactArgs(1),
Annotations: make(map[string]string),
Expand All @@ -57,7 +57,7 @@ func newOrbCommand() *cobra.Command {

publishCommand := &cobra.Command{
Use: "publish <path> <orb>",
Short: "publish an orb to the registry",
Short: "Publish an orb to the registry",
RunE: publishOrb,
Args: cobra.ExactArgs(2),
Annotations: make(map[string]string),
Expand All @@ -67,7 +67,7 @@ func newOrbCommand() *cobra.Command {

promoteCommand := &cobra.Command{
Use: "promote <orb> <segment>",
Short: "promote a development version of an orb to a semantic release",
Short: "Promote a development version of an orb to a semantic release",
RunE: promoteOrb,
Args: cobra.ExactArgs(2),
Annotations: make(map[string]string),
Expand All @@ -77,7 +77,7 @@ func newOrbCommand() *cobra.Command {

incrementCommand := &cobra.Command{
Use: "increment <path> <namespace>/<orb> <segment>",
Short: "increment a released version of an orb",
Short: "Increment a released version of an orb",
RunE: incrementOrb,
Args: cobra.ExactArgs(3),
Annotations: make(map[string]string),
Expand All @@ -102,7 +102,7 @@ func newOrbCommand() *cobra.Command {

orbCreate := &cobra.Command{
Use: "create <namespace>/<orb>",
Short: "create an orb in the specified namespace",
Short: "Create an orb in the specified namespace",
RunE: createOrb,
Args: cobra.ExactArgs(1),
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func newTestsCommand() *cobra.Command {

globCmd := &cobra.Command{
Use: "glob",
Short: "glob files using pattern",
Short: "Glob files using pattern",
Run: globRun,
Hidden: true,
}

splitCmd := &cobra.Command{
Use: "split",
Short: "return a split batch of provided files",
Short: "Return a split batch of provided files",
RunE: splitRunE,
Hidden: true,
}
Expand Down

0 comments on commit 3b583f3

Please sign in to comment.