createcmd

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCreate added in v0.0.15

func NewCmdCreate(f util.Factory, streams *genericclioptions.IOStreams) *cobra.Command

Types

type CreateFlags added in v0.0.15

type CreateFlags struct {
}

func NewCreateFlags added in v0.0.15

func NewCreateFlags() *CreateFlags

The defaults are determined here

func (*CreateFlags) AddFlags added in v0.0.15

func (r *CreateFlags) AddFlags(cmd *cobra.Command)

AddFlags add flags tp the command

func (*CreateFlags) ToOptions added in v0.0.15

func (r *CreateFlags) ToOptions(cmd *cobra.Command, f util.Factory, streams *genericclioptions.IOStreams) (*CreateOptions, error)

ToOptions renders the options based on the flags that were set and will be the base context used to run the command

type CreateOptions added in v0.0.15

type CreateOptions struct {
	Factory util.Factory
	Streams *genericclioptions.IOStreams
}

func (*CreateOptions) Run added in v0.0.15

func (r *CreateOptions) Run(ctx context.Context, args []string) error

func (*CreateOptions) Validate added in v0.0.15

func (r *CreateOptions) Validate(args []string) error

Jump to

Keyboard shortcuts

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