mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user