Commit 0fd5c8d7 authored by Fabiano Franz's avatar Fabiano Franz

Use our own normalizers in the conventions doc

parent 3f7579ca
......@@ -301,24 +301,25 @@ Sample command skeleton:
// MineRecommendedName is the recommended command name for kubectl mine.
const MineRecommendedName = "mine"
// MineConfig contains all the options for running the mine cli command.
type MineConfig struct {
mineLatest bool
}
// Long command description and examples.
var (
mineLong = dedent.Dedent(`
mine which is described here
with lots of details.`)
mineLong = templates.LongDesc(`
mine which is described here
with lots of details.`)
mineExample = dedent.Dedent(`
# Run my command's first action
kubectl mine first_action
mineExample = templates.Examples(`
# Run my command's first action
kubectl mine first_action
# Run my command's second action on latest stuff
kubectl mine second_action --flag`)
# Run my command's second action on latest stuff
kubectl mine second_action --flag`)
)
// MineConfig contains all the options for running the mine cli command.
type MineConfig struct {
mineLatest bool
}
// NewCmdMine implements the kubectl mine command.
func NewCmdMine(parent, name string, f *cmdutil.Factory, out io.Writer) *cobra.Command {
opts := &MineConfig{}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment