Skip to content

Latest commit

 

History

History
106 lines (68 loc) · 1.31 KB

_markdown.md

File metadata and controls

106 lines (68 loc) · 1.31 KB

Example Manual

Example command using cobra and cobradoc.

example [command] [global flags] [command flags]

Global Flags

  -v, --value string   string value
      --flag           boolean flag

Main Commands

Documentation Commands

Additional Commands

Main Commands

example hello

Say hello

example hello [flags]

Command Flags

  -c, --count int   how many times to greet? (default 1)
  -h, --help        help for hello

example bye

Say goodbye

example bye [flags]

Command Flags

  -n, --name string   who got the goodbye? (default "John")
  -h, --help          help for bye

Documentation Commands

example man

Generate manual page

example man [flags]

Command Flags

  -h, --help   help for man

example markdown

Generate markdown page

example markdown [flags]

Command Flags

  -h, --help   help for markdown

Additional Commands

example help

Help about any command

example help [command] [flags]

Command Flags

  -h, --help   help for help