Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommands ¶
func AddCommands(rootCmd *cobra.Command, cmdFuncs map[string]CommandEntry)
Types ¶
type CommandContext ¶
type CommandContext struct {
// contains filtered or unexported fields
}
func NewCommandContext ¶
func NewCommandContext(adminClient service.AdminServiceClient, out io.Writer) CommandContext
func (CommandContext) AdminClient ¶
func (c CommandContext) AdminClient() service.AdminServiceClient
func (CommandContext) InputPipe ¶
func (c CommandContext) InputPipe() io.Reader
func (CommandContext) OutputPipe ¶
func (c CommandContext) OutputPipe() io.Writer
type CommandEntry ¶
type CommandEntry struct {
ProjectDomainNotRequired bool
CmdFunc CommandFunc
Aliases []string
Short string
Long string
PFlagProvider PFlagProvider
}
type CommandFunc ¶
type CommandFunc func(ctx context.Context, args []string, cmdCtx CommandContext) error
type PFlagProvider ¶
Click to show internal directories.
Click to hide internal directories.