Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Version = "DEV"
)
Functions ¶
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func RegisterCmd ¶
func RegisterCmd(ctx *cmdutil.CommandContext) *cobra.Command
Types ¶
type LoginOptions ¶
type LoginOptions struct { Email string `mapstructure:"email"` Password string `mapstructure:"password"` }
func (*LoginOptions) AddFlags ¶
func (o *LoginOptions) AddFlags(cmd *cobra.Command)
func (*LoginOptions) Validate ¶
func (o *LoginOptions) Validate(_ *cmdutil.CommandContext) error
type RegisterOptions ¶
type RegisterOptions struct { Environment string `mapstructure:"environment,omitempty"` FullName string `mapstructure:"full_name,omitempty"` Email string `mapstructure:"email,omitempty"` Password string `mapstructure:"password,omitempty"` }
func (*RegisterOptions) AddFlags ¶
func (o *RegisterOptions) AddFlags(cmd *cobra.Command)
func (*RegisterOptions) Validate ¶
func (o *RegisterOptions) Validate(_ *cmdutil.CommandContext) error
Click to show internal directories.
Click to hide internal directories.