Documentation
¶
Overview ¶
Package help print manager and command information on terminal.
Source code mode ¶
go run main.go go run main.go help go run main.go help docs
Built file mode ¶
./demo ./demo help ./demo help docs
Index ¶
- func New() (managers.Command, error)
- type Command
- func (o *Command) Handle(m managers.Manager, a managers.Arguments) error
- func (o *Command) HandleCommand(a managers.Arguments, c managers.Command) error
- func (o *Command) HandleManager(m managers.Manager, a managers.Arguments) error
- func (o *Command) RenderCommands(m managers.Manager)
- func (o *Command) RenderDescription(str string)
- func (o *Command) RenderGuider(script string)
- func (o *Command) RenderOption(c managers.Command)
- func (o *Command) RenderUsage(script, name string)
- func (o *Command) RenderVersion()
- func (o *Command) SplitWords(w int, str string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
func (*Command) HandleCommand ¶
HandleCommand generate command information and print.
func (*Command) HandleManager ¶
HandleManager generate manager information and print.
func (*Command) RenderCommands ¶
RenderCommands print manager command list.
Commands: docs Build application document files kv:upload Collect local config files and upload to consul
func (*Command) RenderDescription ¶
RenderDescription print command description information.
func (*Command) RenderGuider ¶
RenderGuider print guide information.
func (*Command) RenderOption ¶
RenderOption print option information.
Options:
-b, --base=string Specify working base path
--config=string Specify config path
func (*Command) RenderUsage ¶
RenderUsage print usage information.
Usage: ./app COMMAND [OPTION] Usage: ./app help COMMAND
func (*Command) RenderVersion ¶
func (o *Command) RenderVersion()
RenderVersion print version information.
Version: 3.0.0
Click to show internal directories.
Click to hide internal directories.