cmd

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0, Apache-2.0 Imports: 22 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.YWClientContext) *cobra.Command

func RegisterCmd

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

func RootInit

func RootInit(fs vfs.Filesystem) *cobra.Command

func VersionCmd

func VersionCmd(ctx *cmdutil.YWClientContext) *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.YWClientContext) 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"`
	GenerateAPIToken bool   `mapstructure:"generate_api_token,omitempty"`
}

func (*RegisterOptions) AddFlags

func (o *RegisterOptions) AddFlags(cmd *cobra.Command)

func (*RegisterOptions) Validate

func (o *RegisterOptions) Validate(_ *cmdutil.YWClientContext) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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