-
Notifications
You must be signed in to change notification settings - Fork 102
Updated help messages #311
Changes from 12 commits
bc5de5e
1904691
05b17c5
58f14e5
f27e191
e70558e
689a7cb
4d81584
62bf9a9
d55f763
31b1999
41648a0
7e0e7ee
04b4392
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,7 +63,7 @@ | |
"action":"main" | ||
} | ||
], | ||
"result":"It can be used to add formulas, repositories and other objects.." | ||
"result":"Add a new formula repository to ritchie-cli." | ||
}, | ||
{ | ||
"entry":"Add new repo", | ||
|
@@ -158,7 +158,7 @@ | |
"action":"main" | ||
} | ||
], | ||
"result":"Set objects like credentials, etc." | ||
"result":"Set contexts, credentials and priorities for formula repositories." | ||
}, | ||
{ | ||
"entry":"Update repo", | ||
|
@@ -180,7 +180,7 @@ | |
"action":"main" | ||
} | ||
], | ||
"result":"Add autocomplete for terminal, Available for (bash, zsh)." | ||
"result":"Add autocomplete for terminal, available for (zsh, bash, fish, powershell)." | ||
}, | ||
{ | ||
"entry":"Completion bash", | ||
|
@@ -224,7 +224,7 @@ | |
"action":"main" | ||
} | ||
], | ||
"result":"Delete objects like users, etc." | ||
"result":"Delete a object like context and repository." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the same pattern of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix in 7e0e7ee |
||
}, | ||
{ | ||
"entry":"Show", | ||
|
@@ -235,7 +235,7 @@ | |
"action":"main" | ||
} | ||
], | ||
"result":"Show objects like context, organization etc." | ||
"result":"Show current context." | ||
}, | ||
{ | ||
"entry":"Help", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,12 @@ import ( | |
"github.com/spf13/cobra" | ||
) | ||
|
||
var descAddLong = ` | ||
This command consists of multiple subcommands to interact with ritchie. | ||
|
||
It can be used to add formulas, repositories and other objects.. | ||
` | ||
|
||
// NewAddCmd create a new add instance | ||
func NewAddCmd() *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "add SUBCOMMAND", | ||
Short: "add objects", | ||
Long: descAddLong, | ||
Use: "add SUBCOMMAND", | ||
Short: "Add repositories ", | ||
Long: "Add a new formula repository to ritchie-cli.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Add a new repository of formulas" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Example: "rit add repo", | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,9 @@ import "github.com/spf13/cobra" | |
|
||
func NewBuildCmd() *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "build SUB_COMMAND", | ||
Short: "This is a root command, needs a sub command", | ||
Long: `This is a root command, to use it, add a sub command. For example, rit build formula.`, | ||
Use: "build SUB_COMMAND", | ||
Short: "Build formulas - with subcomando formulas", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Build formulas" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix in 7e0e7ee |
||
Long: "This is a root command, to use it, add a sub command.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the same pattern of the add description. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix in 04b4392 |
||
Example: "rit build formula", | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,9 @@ import "github.com/spf13/cobra" | |
// NewDeleteCmd create a new delete instance | ||
func NewDeleteCmd() *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "delete SUBCOMMAND", | ||
Short: "Delete objects", | ||
Long: `Delete objects like users, etc.`, | ||
Use: "delete SUBCOMMAND", | ||
Short: "Delete objects (contexts, repositories)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the same pattern of set description There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix in 7e0e7ee |
||
Long: "Delete a object like context and repository.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use the same pattern of set description There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix in 7e0e7ee |
||
Example: "rit delete context", | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,9 +31,9 @@ func NewDeleteContextCmd( | |
|
||
cmd := &cobra.Command{ | ||
Use: "context", | ||
Short: "Delete context for Ritchie-cli", | ||
Short: "Delete context for ritchie-cli", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to be more clear, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, changed in 7e0e7ee |
||
Example: "rit delete context", | ||
RunE: RunFuncE(d.runStdin(), d.runPrompt()), | ||
RunE: RunFuncE(d.runStdin(), d.runPrompt()), | ||
} | ||
|
||
cmd.LocalFlags() | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,9 @@ import ( | |
// NewSetCmd creates new cmd instance | ||
func NewSetCmd() *cobra.Command { | ||
return &cobra.Command{ | ||
Use: "set SUBCOMMAND", | ||
Short: "Set objects", | ||
Long: `Set objects like credentials, etc.`, | ||
Use: "set SUBCOMMAND", | ||
Short: "Set objects (context, credential, repo-priority)", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Set contexts, credentials and priorities There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix 7e0e7ee |
||
Long: "Set contexts, credentials and priorities for formula repositories.", | ||
Example: "rit set context", | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Add a new repository of formulas"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix 7e0e7ee