Skip to content

Commit

Permalink
Use our own normalizers in the conventions doc
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianofranz committed Oct 17, 2016
1 parent 3f7579c commit 0fd5c8d
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions docs/devel/kubectl-conventions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 0fd5c8d

Please sign in to comment.