Skip to content
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

Fix indent in update-readme.go #207

Merged
merged 1 commit into from
Jan 17, 2023
Merged

Fix indent in update-readme.go #207

merged 1 commit into from
Jan 17, 2023

Conversation

tksm
Copy link
Contributor

@tksm tksm commented Jan 17, 2023

This PR fixes the indent in update-readme.go as a code block.

Currently, make fmt will show the diff below.

diff --git a/hack/update-readme/update-readme.go b/hack/update-readme/update-readme.go
index 9526fdc..75e30a0 100644
--- a/hack/update-readme/update-readme.go
+++ b/hack/update-readme/update-readme.go
@@ -41,10 +41,13 @@ func main() {

 // GenerateFlagsMarkdownTable generates markdown table of flag list.
 // This function loads flag list and generates such as following text:
-//  flag            | default         | purpose
+//
+//     flag            | default         | purpose
+//
 // -----------------|-----------------|---------
-//  `--flag1`, `-f` |                 | This is flag1.
-//  `--flag2`       | `flag2-default` | This is flag2.
+//
+//     `--flag1`, `-f` |                 | This is flag1.
+//     `--flag2`       | `flag2-default` | This is flag2.
 func GenerateFlagsMarkdownTable() string {
        fs := pflag.NewFlagSet("", pflag.ExitOnError)
        o := cmd.NewOptions(genericclioptions.NewTestIOStreamsDiscard())

Copy link
Member

@rkmathi rkmathi left a comment

Choose a reason for hiding this comment

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

Thank you!

@rkmathi rkmathi merged commit daf2464 into stern:master Jan 17, 2023
@tksm tksm deleted the fix-indent branch January 18, 2023 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants