cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute builds the default root command and invokes it with os.Args

func NewCmdConfig

func NewCmdConfig(s printers.IOStreams) *cobra.Command

func NewCmdConfigGet

func NewCmdConfigGet(s printers.IOStreams) *cobra.Command

func NewCmdConfigSetup

func NewCmdConfigSetup(s printers.IOStreams) *cobra.Command

func NewCmdContentType

func NewCmdContentType(s printers.IOStreams) *cobra.Command

func NewCmdContentTypeCreate

func NewCmdContentTypeCreate(s printers.IOStreams) *cobra.Command

func NewCmdContentTypeDelete

func NewCmdContentTypeDelete(s printers.IOStreams) *cobra.Command

func NewCmdContentTypeRead

func NewCmdContentTypeRead(s printers.IOStreams) *cobra.Command

func NewCmdContentTypeUpdate

func NewCmdContentTypeUpdate(s printers.IOStreams) *cobra.Command

func NewCmdGlobal

func NewCmdGlobal(s printers.IOStreams) *cobra.Command

func NewCmdGlobalCreate

func NewCmdGlobalCreate(s printers.IOStreams) *cobra.Command

func NewCmdGlobalDelete

func NewCmdGlobalDelete(s printers.IOStreams) *cobra.Command

func NewCmdGlobalRead

func NewCmdGlobalRead(s printers.IOStreams) *cobra.Command

func NewCmdGlobalUpdate

func NewCmdGlobalUpdate(s printers.IOStreams) *cobra.Command

func NewCmdVersion

func NewCmdVersion(s printers.IOStreams) *cobra.Command

func NewRootCmd

func NewRootCmd(s printers.IOStreams) *cobra.Command

NewRootCmd creates the 'root' command and configures it's nested children

Types

type ConfigGetOptions

type ConfigGetOptions struct {
	*printers.PrinterOptions
	Values *cfg.Config
}

func NewConfigGetOptions

func NewConfigGetOptions(s printers.IOStreams) *ConfigGetOptions

func (*ConfigGetOptions) Complete

func (o *ConfigGetOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ConfigGetOptions) Run

func (o *ConfigGetOptions) Run() error

Run the command

func (*ConfigGetOptions) Validate

func (o *ConfigGetOptions) Validate() error

Validate the options

type ConfigSetupOptions

type ConfigSetupOptions struct {
	*printers.PrinterOptions
	Config *cfg.Config
}

func NewConfigSetupOptions

func NewConfigSetupOptions(s printers.IOStreams) *ConfigSetupOptions

func (*ConfigSetupOptions) Complete

func (o *ConfigSetupOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ConfigSetupOptions) Run

func (o *ConfigSetupOptions) Run() error

Run the command

func (*ConfigSetupOptions) Validate

func (o *ConfigSetupOptions) Validate() error

Validate the options

type ContentTypeCreateOptions

type ContentTypeCreateOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	UID    string
}

func NewContentTypeCreateOptions

func NewContentTypeCreateOptions(s printers.IOStreams) *ContentTypeCreateOptions

func (*ContentTypeCreateOptions) Complete

func (o *ContentTypeCreateOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ContentTypeCreateOptions) Run

Run the command

func (*ContentTypeCreateOptions) Validate

func (o *ContentTypeCreateOptions) Validate() error

Validate the options

type ContentTypeDeleteOptions

type ContentTypeDeleteOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	UID    string
	Force  bool
}

func NewContentTypeDeleteOptions

func NewContentTypeDeleteOptions(s printers.IOStreams) *ContentTypeDeleteOptions

func (*ContentTypeDeleteOptions) Complete

func (o *ContentTypeDeleteOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ContentTypeDeleteOptions) Run

Run the command

func (*ContentTypeDeleteOptions) Validate

func (o *ContentTypeDeleteOptions) Validate() error

Validate the options

type ContentTypeReadOptions

type ContentTypeReadOptions struct {
	*printers.PrinterOptions
	Config                   cfg.Config
	Client                   *management.Client
	UID                      string
	IncludeCount             int64
	IncludeGlobalFieldSchema bool
}

func NewContentTypeReadOptions

func NewContentTypeReadOptions(s printers.IOStreams) *ContentTypeReadOptions

func (*ContentTypeReadOptions) Complete

func (o *ContentTypeReadOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ContentTypeReadOptions) Run

func (o *ContentTypeReadOptions) Run() error

Run the command

func (*ContentTypeReadOptions) Validate

func (o *ContentTypeReadOptions) Validate() error

Validate the options

type ContentTypeUpdateOptions

type ContentTypeUpdateOptions struct {
	*printers.PrinterOptions
	Config   cfg.Config
	Client   *management.Client
	UID      string
	NewTitle string
}

func NewContentTypeUpdateOptions

func NewContentTypeUpdateOptions(s printers.IOStreams) *ContentTypeUpdateOptions

func (*ContentTypeUpdateOptions) Complete

func (o *ContentTypeUpdateOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*ContentTypeUpdateOptions) Run

Run the command

func (*ContentTypeUpdateOptions) Validate

func (o *ContentTypeUpdateOptions) Validate() error

Validate the options

type GlobalCreateOptions

type GlobalCreateOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	UID    string
}

func NewGlobalCreateOptions

func NewGlobalCreateOptions(s printers.IOStreams) *GlobalCreateOptions

func (*GlobalCreateOptions) Complete

func (o *GlobalCreateOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*GlobalCreateOptions) Run

func (o *GlobalCreateOptions) Run() error

Run the command

func (*GlobalCreateOptions) Validate

func (o *GlobalCreateOptions) Validate() error

Validate the options

type GlobalDeleteOptions

type GlobalDeleteOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	UID    string
	Force  bool
}

func NewGlobalDeleteOptions

func NewGlobalDeleteOptions(s printers.IOStreams) *GlobalDeleteOptions

func (*GlobalDeleteOptions) Complete

func (o *GlobalDeleteOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*GlobalDeleteOptions) Run

func (o *GlobalDeleteOptions) Run() error

Run the command

func (*GlobalDeleteOptions) Validate

func (o *GlobalDeleteOptions) Validate() error

Validate the options

type GlobalReadOptions

type GlobalReadOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	UID    string
}

func NewGlobalReadOptions

func NewGlobalReadOptions(s printers.IOStreams) *GlobalReadOptions

func (*GlobalReadOptions) Complete

func (o *GlobalReadOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*GlobalReadOptions) Run

func (o *GlobalReadOptions) Run() error

Run the command

func (*GlobalReadOptions) Validate

func (o *GlobalReadOptions) Validate() error

Validate the options

type GlobalUpdateOptions

type GlobalUpdateOptions struct {
	*printers.PrinterOptions
	Config   cfg.Config
	Client   *management.Client
	UID      string
	NewTitle string
}

func NewGlobalUpdateOptions

func NewGlobalUpdateOptions(s printers.IOStreams) *GlobalUpdateOptions

func (*GlobalUpdateOptions) Complete

func (o *GlobalUpdateOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*GlobalUpdateOptions) Run

func (o *GlobalUpdateOptions) Run() error

Run the command

func (*GlobalUpdateOptions) Validate

func (o *GlobalUpdateOptions) Validate() error

Validate the options

type VersionOptions

type VersionOptions struct {
	*printers.PrinterOptions
	VersionDetails *version.DetailStruct
}

func NewVersionOptions

func NewVersionOptions(s printers.IOStreams) *VersionOptions

func (*VersionOptions) Complete

func (o *VersionOptions) Complete(cmd *cobra.Command, args []string) error

Complete the options

func (*VersionOptions) Run

func (o *VersionOptions) Run() error

Run the command

func (*VersionOptions) Validate

func (o *VersionOptions) Validate() error

Validate the options

Jump to

Keyboard shortcuts

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