-
Notifications
You must be signed in to change notification settings - Fork 102
Updated help messages #311
Updated help messages #311
Conversation
Codecov Report
@@ Coverage Diff @@
## ritchie-2.0.0 #311 +/- ##
================================================
Coverage ? 57.01%
================================================
Files ? 70
Lines ? 2275
Branches ? 0
================================================
Hits ? 1297
Misses ? 827
Partials ? 151 Continue to review full report at Codecov.
|
functional/core/core_feature.json
Outdated
@@ -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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Fix in 7e0e7ee
functional/core/core_feature.json
Outdated
@@ -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." |
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
pkg/cmd/add.go
Outdated
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 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.
pkg/cmd/build.go
Outdated
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Fix in 7e0e7ee
pkg/cmd/build.go
Outdated
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", | ||
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Fix in 04b4392
pkg/cmd/delete.go
Outdated
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Fix in 7e0e7ee
pkg/cmd/delete.go
Outdated
Long: `Delete objects like users, etc.`, | ||
Use: "delete SUBCOMMAND", | ||
Short: "Delete objects (contexts, repositories)", | ||
Long: "Delete a object like context and repository.", |
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.
Use the same pattern of set description
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 in 7e0e7ee
pkg/cmd/delete_context.go
Outdated
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
We need to be more clear, ritchie-cli
is the program, so maybe you can use delete context for credentials
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.
Right, changed in 7e0e7ee
pkg/cmd/set.go
Outdated
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 comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Fix 7e0e7ee
- What I did
Updated help messages for core commands and commands with more than one subcommand.
This PR includes PR #256 changes for the ritchie-2.0.0 branch
- How to verify it
- Description for the changelog
Updated help messages