list

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotEmptyArgs = errors.New("no args accepted")

Functions

func NewCmd

func NewCmd() *cobra.Command

NewCmd creates the `list` command.

Types

type Flags

type Flags struct {
	Backend   *string
	Workspace *[]string
	All       bool
}

Flags defines the flags for the `list` command. Flags reflects the information gathered by the `list` command.

func NewFlags

func NewFlags() *Flags

NewFlags returns a new Flags with default values.

func (*Flags) AddFlags

func (f *Flags) AddFlags(cmd *cobra.Command)

AddFlags registers flags for the `list` command.

func (*Flags) ToOptions

func (f *Flags) ToOptions() (*Options, error)

ToOptions converts the Flags to the Options.

type Options

type Options struct {
	Workspace        []string
	CurrentWorkspace string
	// contains filtered or unexported fields
}

Options defines the configurations for the `list` command. Options reflects the runtime requirements for the `list` command.

func (*Options) Run

func (o *Options) Run() error

Run executes the `list` command.

func (*Options) Validate

func (o *Options) Validate(cmd *cobra.Command, args []string) error

Validate checks the options to see if they are valid.

Jump to

Keyboard shortcuts

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