Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

Updated help messages #311

Merged

Conversation

brunats
Copy link
Contributor

@brunats brunats commented Jul 24, 2020

- 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

Core
antes
->
depois

Completion
completion1
->
completion2

Delete
delete1
->
aa

Set
set1
->
set2

- How to verify it

rit # to verify help messages of commands core
rit completion
rit delete
rit set

- Description for the changelog

Updated help messages

@brunasilvazup brunasilvazup changed the title Updated help messages for top-level commands Updated help messages Jul 24, 2020
@brunasilvazup brunasilvazup added 2.0.0 🔨 improvement Improvement in features 🚧 WIP Work in Progress labels Jul 24, 2020
@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2020

Codecov Report

❗ No coverage uploaded for pull request base (ritchie-2.0.0@a0beb5a). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a0beb5a...04b4392. Read the comment docs.

@@ -224,7 +224,7 @@
"action":"main"
}
],
"result":"Delete objects like users, etc."
"result":"Delete a object like context and repository."
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in 7e0e7ee

@@ -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."
Copy link
Contributor

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"

Copy link
Contributor Author

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.",
Copy link
Contributor

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"

Copy link
Contributor Author

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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Build formulas"

Copy link
Contributor Author

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.",
Copy link
Contributor

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in 04b4392

Short: "Delete objects",
Long: `Delete objects like users, etc.`,
Use: "delete SUBCOMMAND",
Short: "Delete objects (contexts, repositories)",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in 7e0e7ee

Long: `Delete objects like users, etc.`,
Use: "delete SUBCOMMAND",
Short: "Delete objects (contexts, repositories)",
Long: "Delete a object like context and repository.",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in 7e0e7ee

@@ -31,9 +31,9 @@ func NewDeleteContextCmd(

cmd := &cobra.Command{
Use: "context",
Short: "Delete context for Ritchie-cli",
Short: "Delete context for ritchie-cli",
Copy link
Contributor

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

Copy link
Contributor Author

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)",
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix 7e0e7ee

@brunats brunats requested a review from sandokandias July 27, 2020 18:02
@sandokandias sandokandias merged commit dc33799 into ZupIT:ritchie-2.0.0 Jul 27, 2020
@brunats brunats deleted the improvement/information-about-help branch August 26, 2020 20:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🚧 WIP Work in Progress 🔨 improvement Improvement in features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants