cmd

package
v0.0.0-...-6504949 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2021 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

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 LoginCmd

func LoginCmd(ctx *cmdutil.CommandContext) *cobra.Command

func RegisterCmd

func RegisterCmd(ctx *cmdutil.CommandContext) *cobra.Command

func RootInit

func RootInit() *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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL