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:

committed by
Juan Batiz-Benet

parent
6869ca44fa
commit
7666f8880c
@ -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
|
||||
|
Reference in New Issue
Block a user