diff options
| author | k8s-merge-robot <k8s.production.user@gmail.com> | 2016-06-28 12:50:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-06-28 12:50:59 -0700 |
| commit | 42749047287fb7d7f9b967d57713703f0610f6d0 (patch) | |
| tree | af825c7dcf736bc902072c462801d400d7aaedbd | |
| parent | 6f656531e2d64b36ca735810f7e97c01007d33a3 (diff) | |
| parent | b601f18a298d833b76c7ba0d1e47c24ff4e02dc8 (diff) | |
Merge pull request #26761 from matchstick/dedent
Automatic merge from submit-queue
Dedent
Adding the dedent package and then applying it to the kubectl help commands. Also updating the documentation to reflect the use of dedent.
| -rw-r--r-- | kubectl-conventions.md | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/kubectl-conventions.md b/kubectl-conventions.md index 4d11fc02..0beb95a7 100644 --- a/kubectl-conventions.md +++ b/kubectl-conventions.md @@ -279,15 +279,17 @@ type MineConfig struct { mineLatest bool } -const ( - mineLong = `Some long description -for my command.` +var ( + mineLong = dedent.Dedent(` + mine which is described here + with lots of details.`) - mineExample = ` # Run my command's first action - $ %[1]s first + mineExample = dedent.Dedent(` + # Run my command's first action + kubectl mine first_action - # Run my command's second action on latest stuff - $ %[1]s second --latest` + # Run my command's second action on latest stuff + kubectl mine second_action --flag`) ) // NewCmdMine implements the kubectl mine command. |
