1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-19 01:39:35 +08:00

commands: Allow overriding helptext sections with hand-written strings

This commit is contained in:
Matt Bell
2014-11-11 18:44:28 -08:00
committed by Juan Batiz-Benet
parent 6869ca44fa
commit 7666f8880c
2 changed files with 31 additions and 8 deletions

View File

@ -28,8 +28,13 @@ type Marshaller func(Response) ([]byte, error)
// Command is a runnable command, with input arguments and options (flags).
// It can also have Subcommands, to group units of work into sets.
type Command struct {
Description string
Help string
// MAYBE_TODO: move all the text fields into a struct
// MAYBE_TODO: move these out of command and put them somewhere in commands/cli
Description string
Help string
SubcommandHelp string
OptionHelp string
ArgumentHelp string
Options []Option
Arguments []Argument