Skip to content

Add missing env variables in CLI reference doc#1863

Merged
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:test-skaffold-man
Mar 23, 2019
Merged

Add missing env variables in CLI reference doc#1863
dgageot merged 1 commit intoGoogleContainerTools:masterfrom
dgageot:test-skaffold-man

Conversation

@dgageot
Copy link
Copy Markdown
Contributor

@dgageot dgageot commented Mar 22, 2019

  • Add a unit test
  • Simplify the code

Fixes #1862

Signed-off-by: David Gageot david@gageot.net

@codecov-io
Copy link
Copy Markdown

codecov-io commented Mar 22, 2019

Codecov Report

Merging #1863 into master will increase coverage by 0.22%.
The diff coverage is 73.68%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1863      +/-   ##
==========================================
+ Coverage    49.4%   49.63%   +0.22%     
==========================================
  Files         166      166              
  Lines        7327     7328       +1     
==========================================
+ Hits         3620     3637      +17     
+ Misses       3357     3340      -17     
- Partials      350      351       +1
Impacted Files Coverage Δ
cmd/skaffold/man/man.go 77.27% <73.68%> (+77.27%) ⬆️

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 8e853c4...7d32677. Read the comment docs.

Copy link
Copy Markdown
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this plus adding tests!!!!
(it was my bad that this got removed)

@balopat balopat added the docs-modifications runs the docs preview service on the given PR label Mar 22, 2019
@container-tools-bot
Copy link
Copy Markdown

Please visit http://35.236.65.79:1313 to view changes to the docs.

@container-tools-bot container-tools-bot removed the docs-modifications runs the docs preview service on the given PR label Mar 22, 2019

command.LocalFlags().VisitAll(func(flag *pflag.Flag) {
fmt.Printf("* `%s` (same as --%s)\n", cmd.FlagToEnvVarName(flag), flag.Name)
fmt.Fprintf(out, "* `%s` (same as --%s)\n", cmd.FlagToEnvVarName(flag), flag.Name)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
fmt.Fprintf(out, "* `%s` (same as --%s)\n", cmd.FlagToEnvVarName(flag), flag.Name)
fmt.Fprintf(out, "* `%s` (same as `--%s`)\n", cmd.FlagToEnvVarName(flag), flag.Name)

+ Add a unit test
+ Simplify the code

Fixes GoogleContainerTools#1862

Signed-off-by: David Gageot <david@gageot.net>
@dgageot dgageot force-pushed the test-skaffold-man branch from 4ac777e to 7d32677 Compare March 22, 2019 18:02
@dgageot dgageot merged commit ce548d6 into GoogleContainerTools:master Mar 23, 2019
briandealwis added a commit to briandealwis/skaffold that referenced this pull request Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants