You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make cmd testable (stern#132)
* Make cmd testable
* Use genericclioptions.IOStreams for stdio
* Rename completion.go to flag_completion.go
* Extract code related to --version flag to flag_version.go
* Extract code related to --prompt flag to flag_prompt.go
* Functionize code to register completion function to cobra.Command
* Add tests for cmd.NewSternCmd
* Refactor flag_version.go
* Add a test for options.Validate method
Generate cli flags section on README.md (stern#131)
* Reorder opts
* Set opts.since default value
* Move flags into AddFlags function to use hack/update-readme
* Implement hack/update-readme
* Implement hack/verify-readme
* Update README.md which is generated by update-readme
Fix mixed log lines (stern#106)
> A template may be executed safely in parallel, although if parallel
executions share a Writer the output may be interleaved.
For the above reason, the result of the template's execution must be
stored in a buffer once.