Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cobra.Command{ Use: "component", Short: "Manage components", Run: func(cmd *cobra.Command, args []string) { fmt.Println("Issue requires a subcommand:") for _, command := range cmd.Commands() { fmt.Println(command.Name()) } }, }
Command represents this folder's command
Functions ¶
Types ¶
type Component ¶
type Component struct { Type string `json:"type" mapstructure:"type"` ID int `json:"id" mapstructure:"id"` Name string `json:"name" mapstructure:"name"` Links common.Links `json:"links" mapstructure:"links"` }
type Components ¶
type Components []Component
func (Components) GetHeader ¶
func (components Components) GetHeader() []string
GetHeader gets the headers for the list command
implements common.Tableables
func (Components) GetRowAt ¶
func (components Components) GetRowAt(index int, headers []string) []string
GetRowAt gets the row for the list command
implements common.Tableables
func (Components) Size ¶
func (components Components) Size() int
Size gets the number of elements
implements common.Tableables
Click to show internal directories.
Click to hide internal directories.