-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor commands descriptions #1585
Conversation
Signed-off-by: Pavol Loffay <[email protected]>
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Fprintln(cmd.OutOrStdout(), ` |
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.
I wanted to make this available in generated docs. Now it is printed when env
command is run but also included in generated docs.
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.
do you have an example of the output you could paste?
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.
The output is the same as before, Just removed spaces at the beginning.
@@ -47,9 +47,9 @@ func main() { | |||
|
|||
v := viper.New() | |||
command := &cobra.Command{ | |||
Use: "(experimental) jaeger-ingester", |
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.
The use should not include spaces otherwise generated files look like:
(experimental).md
(experimental)_docs.md
(experimental)_env.md
(experimental)_version.md
Codecov Report
@@ Coverage Diff @@
## master #1585 +/- ##
=========================================
- Coverage 98.8% 98.8% -0.01%
=========================================
Files 191 191
Lines 9102 9095 -7
=========================================
- Hits 8993 8986 -7
Misses 85 85
Partials 24 24
Continue to review full report at Codecov.
|
@@ -89,7 +89,7 @@ func main() { | |||
Use: "jaeger-all-in-one", | |||
Short: "Jaeger all-in-one distribution with agent, collector and query in one process.", | |||
Long: `Jaeger all-in-one distribution with agent, collector and query. Use with caution this version |
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.
"caution as this"
Does it need to be broken into 2 lines?
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.
just a preference to break lines longer than 100 chars.
Run: func(cmd *cobra.Command, args []string) { | ||
fmt.Fprintln(cmd.OutOrStdout(), ` |
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.
do you have an example of the output you could paste?
@objectiser the current output:
|
Signed-off-by: Pavol Loffay [email protected]