Documentation ¶
Index ¶
- func AddPreRunE(c *cobra.Command, f func(*cobra.Command, []string) error)
- func GetClientOptionsGroupHelpCommand() *cobra.Command
- func GetPrintOptionsGroupHelpCommand() *cobra.Command
- type ClientOpts
- func (opts *ClientOpts) ConfigureDefaultOrganization() error
- func (opts *ClientOpts) GetAPIClient() (*api.Client, error)
- func (opts *ClientOpts) GetClientOptionsGroup() *HiddenOptionsGroup
- func (opts *ClientOpts) GetUnauthenticatedAPIClient() *api.Client
- func (opts *ClientOpts) IsAuthenticated() bool
- func (opts *ClientOpts) MustGetAPIClient() *api.Client
- func (opts *ClientOpts) Register(cmd *cobra.Command)
- func (opts *ClientOpts) RequireAuthentication() error
- func (opts *ClientOpts) SetContextValues(context map[string]string)
- func (opts *ClientOpts) ValidateOrganization() error
- type HiddenOptionsGroup
- type Interface
- type PrintClientOpts
- type PrintOpts
- func (p *PrintOpts) GetPrintOptionsGroup() *HiddenOptionsGroup
- func (p *PrintOpts) GetPrinter() (print.Interface, error)
- func (p *PrintOpts) MustPrintStructResult(result interface{})
- func (p *PrintOpts) PrintResult(result *jnode.Node)
- func (p *PrintOpts) Register(cmd *cobra.Command)
- func (p *PrintOpts) SetColumnFunction(columnName string, computer print.ColumnFunction)
- func (p *PrintOpts) SetFormatter(columnName string, formatter print.Formatter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientOptionsGroupHelpCommand ¶ added in v0.4.28
func GetPrintOptionsGroupHelpCommand ¶ added in v0.4.28
Types ¶
type ClientOpts ¶
type ClientOpts struct { APIConfig api.Config DefaultTimeout int // contains filtered or unexported fields }
func (*ClientOpts) ConfigureDefaultOrganization ¶ added in v0.5.42
func (opts *ClientOpts) ConfigureDefaultOrganization() error
func (*ClientOpts) GetAPIClient ¶
func (opts *ClientOpts) GetAPIClient() (*api.Client, error)
func (*ClientOpts) GetClientOptionsGroup ¶ added in v0.4.28
func (opts *ClientOpts) GetClientOptionsGroup() *HiddenOptionsGroup
func (*ClientOpts) GetUnauthenticatedAPIClient ¶
func (opts *ClientOpts) GetUnauthenticatedAPIClient() *api.Client
func (*ClientOpts) IsAuthenticated ¶ added in v0.4.24
func (opts *ClientOpts) IsAuthenticated() bool
func (*ClientOpts) MustGetAPIClient ¶ added in v0.5.35
func (opts *ClientOpts) MustGetAPIClient() *api.Client
func (*ClientOpts) Register ¶
func (opts *ClientOpts) Register(cmd *cobra.Command)
func (*ClientOpts) RequireAuthentication ¶ added in v0.5.39
func (opts *ClientOpts) RequireAuthentication() error
func (*ClientOpts) SetContextValues ¶ added in v0.4.4
func (opts *ClientOpts) SetContextValues(context map[string]string)
func (*ClientOpts) ValidateOrganization ¶ added in v0.5.42
func (opts *ClientOpts) ValidateOrganization() error
type HiddenOptionsGroup ¶ added in v0.4.22
type HiddenOptionsGroup struct { Name string Long string Example string CreateFlagsFunc func(*pflag.FlagSet) }
func (*HiddenOptionsGroup) GetHelpCommand ¶ added in v0.4.28
func (group *HiddenOptionsGroup) GetHelpCommand() *cobra.Command
func (*HiddenOptionsGroup) Register ¶ added in v0.4.28
func (group *HiddenOptionsGroup) Register(cmd *cobra.Command)
type PrintClientOpts ¶
type PrintClientOpts struct { PrintOpts ClientOpts }
func (*PrintClientOpts) Register ¶
func (opts *PrintClientOpts) Register(cmd *cobra.Command)
func (*PrintClientOpts) SetContextValues ¶ added in v0.4.4
func (opts *PrintClientOpts) SetContextValues(context map[string]string)
type PrintOpts ¶
type PrintOpts struct { OutputFormat []string DefaultOutputFormat string NoHeaders bool Wide bool Path []string Columns []string WideColumns []string DiffColumn string VersionColumn string SortBy []string DefaultSortBy []string Limit int Filter []string Template []string Formatters map[string]print.Formatter ComputedColumns map[string]print.ColumnFunction DiffContextSize int // This is a workaround for the inability of the table printer to // accumluate results across an array. See tools/command.go for how // this is used. PrintTableDataTransform func(*jnode.Node) *jnode.Node // contains filtered or unexported fields }
func (*PrintOpts) GetPrintOptionsGroup ¶ added in v0.4.28
func (p *PrintOpts) GetPrintOptionsGroup() *HiddenOptionsGroup
func (*PrintOpts) GetPrinter ¶ added in v0.4.7
func (*PrintOpts) MustPrintStructResult ¶ added in v0.5.27
func (p *PrintOpts) MustPrintStructResult(result interface{})
func (*PrintOpts) PrintResult ¶
func (p *PrintOpts) PrintResult(result *jnode.Node)
func (*PrintOpts) SetColumnFunction ¶ added in v0.4.17
func (p *PrintOpts) SetColumnFunction(columnName string, computer print.ColumnFunction)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.