commands

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompletionCommand

func NewCompletionCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewDocsCommand

func NewDocsCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewDoctorCommand

func NewDoctorCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewRiffCommand

func NewRiffCommand(ctx context.Context, c *cli.Config) *cobra.Command

func NewRootCommand

func NewRootCommand(ctx context.Context, c *cli.Config) *cobra.Command

NewRootCommand wraps the riff command with flags and commands that should only be defined on the CLI root.

Types

type CompletionOptions

type CompletionOptions struct {
	Shell string
}

func (*CompletionOptions) Exec

func (opts *CompletionOptions) Exec(ctx context.Context, c *cli.Config) error

func (*CompletionOptions) MakeBashCompletion added in v0.5.0

func (opts *CompletionOptions) MakeBashCompletion(c *cli.Config) string

func (*CompletionOptions) Validate

func (opts *CompletionOptions) Validate(ctx context.Context) cli.FieldErrors

type DocsOptions

type DocsOptions struct {
	Directory string
}

func (*DocsOptions) Validate

func (opts *DocsOptions) Validate(ctx context.Context) cli.FieldErrors

type DoctorOptions

type DoctorOptions struct {
	Namespace string
}

func (*DoctorOptions) Exec

func (opts *DoctorOptions) Exec(ctx context.Context, c *cli.Config) error

func (*DoctorOptions) Validate

func (opts *DoctorOptions) Validate(ctx context.Context) cli.FieldErrors

Jump to

Keyboard shortcuts

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