cmd

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-3.0 Imports: 13 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 NewCmdEnvironment added in v0.3.0

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

func NewCmdEnvironmentCreate added in v0.3.0

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

func NewCmdEnvironmentDelete added in v0.3.0

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

func NewCmdEnvironmentRead added in v0.3.0

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

func NewCmdEnvironmentUpdate added in v0.3.0

func NewCmdEnvironmentUpdate(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 NewCmdLocale added in v0.4.0

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

func NewCmdLocaleCreate added in v0.4.0

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

func NewCmdLocaleDelete added in v0.4.0

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

func NewCmdLocaleRead added in v0.4.0

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

func NewCmdLocaleUpdate added in v0.4.0

func NewCmdLocaleUpdate(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 EnvironmentCreateOptions added in v0.3.0

type EnvironmentCreateOptions struct {
	*printers.PrinterOptions
	Config       cfg.Config
	Client       *management.Client
	Name         string
	RawURLParams []string
	URLsByLocale map[string]string
}

func NewEnvironmentCreateOptions added in v0.3.0

func NewEnvironmentCreateOptions(s printers.IOStreams) *EnvironmentCreateOptions

func (*EnvironmentCreateOptions) Complete added in v0.3.0

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

Complete the options

func (*EnvironmentCreateOptions) Run added in v0.3.0

Run the command

func (*EnvironmentCreateOptions) Validate added in v0.3.0

func (o *EnvironmentCreateOptions) Validate() error

Validate the options

type EnvironmentDeleteOptions added in v0.3.0

type EnvironmentDeleteOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	Name   string
	Force  bool
}

func NewEnvironmentDeleteOptions added in v0.3.0

func NewEnvironmentDeleteOptions(s printers.IOStreams) *EnvironmentDeleteOptions

func (*EnvironmentDeleteOptions) Complete added in v0.3.0

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

Complete the options

func (*EnvironmentDeleteOptions) Run added in v0.3.0

Run the command

func (*EnvironmentDeleteOptions) Validate added in v0.3.0

func (o *EnvironmentDeleteOptions) Validate() error

Validate the options

type EnvironmentReadOptions added in v0.3.0

type EnvironmentReadOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	Name   string
}

func NewEnvironmentReadOptions added in v0.3.0

func NewEnvironmentReadOptions(s printers.IOStreams) *EnvironmentReadOptions

func (*EnvironmentReadOptions) Complete added in v0.3.0

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

Complete the options

func (*EnvironmentReadOptions) Run added in v0.3.0

func (o *EnvironmentReadOptions) Run() error

Run the command

func (*EnvironmentReadOptions) Validate added in v0.3.0

func (o *EnvironmentReadOptions) Validate() error

Validate the options

type EnvironmentUpdateOptions added in v0.3.0

type EnvironmentUpdateOptions struct {
	*printers.PrinterOptions
	Config       cfg.Config
	Client       *management.Client
	Name         string
	RawURLParams []string
	URLsByLocale map[string]string
}

func NewEnvironmentUpdateOptions added in v0.3.0

func NewEnvironmentUpdateOptions(s printers.IOStreams) *EnvironmentUpdateOptions

func (*EnvironmentUpdateOptions) Complete added in v0.3.0

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

Complete the options

func (*EnvironmentUpdateOptions) Run added in v0.3.0

Run the command

func (*EnvironmentUpdateOptions) Validate added in v0.3.0

func (o *EnvironmentUpdateOptions) 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 LocaleCreateOptions added in v0.4.0

type LocaleCreateOptions struct {
	*printers.PrinterOptions
	Config       cfg.Config
	Client       *management.Client
	Code         string
	Name         string
	FallbackCode string
}

func NewLocaleCreateOptions added in v0.4.0

func NewLocaleCreateOptions(s printers.IOStreams) *LocaleCreateOptions

func (*LocaleCreateOptions) Complete added in v0.4.0

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

Complete the options

func (*LocaleCreateOptions) Run added in v0.4.0

func (o *LocaleCreateOptions) Run() error

Run the command

func (*LocaleCreateOptions) Validate added in v0.4.0

func (o *LocaleCreateOptions) Validate() error

Validate the options

type LocaleDeleteOptions added in v0.4.0

type LocaleDeleteOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	Code   string
	Force  bool
}

func NewLocaleDeleteOptions added in v0.4.0

func NewLocaleDeleteOptions(s printers.IOStreams) *LocaleDeleteOptions

func (*LocaleDeleteOptions) Complete added in v0.4.0

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

Complete the options

func (*LocaleDeleteOptions) Run added in v0.4.0

func (o *LocaleDeleteOptions) Run() error

Run the command

func (*LocaleDeleteOptions) Validate added in v0.4.0

func (o *LocaleDeleteOptions) Validate() error

Validate the options

type LocaleReadOptions added in v0.4.0

type LocaleReadOptions struct {
	*printers.PrinterOptions
	Config cfg.Config
	Client *management.Client
	Code   string
}

func NewLocaleReadOptions added in v0.4.0

func NewLocaleReadOptions(s printers.IOStreams) *LocaleReadOptions

func (*LocaleReadOptions) Complete added in v0.4.0

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

Complete the options

func (*LocaleReadOptions) Run added in v0.4.0

func (o *LocaleReadOptions) Run() error

Run the command

func (*LocaleReadOptions) Validate added in v0.4.0

func (o *LocaleReadOptions) Validate() error

Validate the options

type LocaleUpdateOptions added in v0.4.0

type LocaleUpdateOptions struct {
	*printers.PrinterOptions
	Config             cfg.Config
	Client             *management.Client
	Code               string
	Name               string
	FallbackLocaleCode string
	Force              bool
}

func NewLocaleUpdateOptions added in v0.4.0

func NewLocaleUpdateOptions(s printers.IOStreams) *LocaleUpdateOptions

func (*LocaleUpdateOptions) Complete added in v0.4.0

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

Complete the options

func (*LocaleUpdateOptions) Run added in v0.4.0

func (o *LocaleUpdateOptions) Run() error

Run the command

func (*LocaleUpdateOptions) Validate added in v0.4.0

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