mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
Document usage of dedent for kubectl commands
This commit is contained in:
parent
760b04e294
commit
37f9647dfe
@ -279,15 +279,17 @@ type MineConfig struct {
|
|||||||
mineLatest bool
|
mineLatest bool
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
var (
|
||||||
mineLong = `Some long description
|
mineLong = dedent.Dedent(`
|
||||||
for my command.`
|
mine which is described here
|
||||||
|
with lots of details.`)
|
||||||
|
|
||||||
mineExample = ` # Run my command's first action
|
mineExample = dedent.Dedent(`
|
||||||
$ %[1]s first
|
# Run my command's first action
|
||||||
|
kubectl mine first_action
|
||||||
|
|
||||||
# Run my command's second action on latest stuff
|
# Run my command's second action on latest stuff
|
||||||
$ %[1]s second --latest`
|
kubectl mine second_action --flag`)
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewCmdMine implements the kubectl mine command.
|
// NewCmdMine implements the kubectl mine command.
|
||||||
|
Loading…
Reference in New Issue
Block a user