github.com/goonzoid/gcli@v0.2.3-0.20150926213610-155587606ea1/skeleton/command.go (about)

     1  package skeleton
     2  
     3  const (
     4  	// DefaultSynopsis is default synopsis message.
     5  	DefaultSynopsis = ""
     6  
     7  	// DefaultHelp is default help message.
     8  	DefaultHelp = ""
     9  )
    10  
    11  // Command store command meta information.
    12  type Command struct {
    13  	// Name is command name.
    14  	Name string
    15  
    16  	// Flags are flag for the command.
    17  	Flags []Flag
    18  
    19  	// Synopsis is short help message of the command.
    20  	Synopsis string
    21  
    22  	// Help is long help message of the command.
    23  	Help string
    24  
    25  	// debugOutput is injected to command function
    26  	// and generate for debugging purpose.
    27  	// TODO: https://github.com/BurntSushi/toml/pull/90
    28  	DebugOutput string `toml:",omitempty"`
    29  }