cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdJQ

func NewCmdJQ(streams genericclioptions.IOStreams, version string) *cobra.Command

Types

type Formatter

type Formatter interface {
	Marshal(interface{}) ([]byte, error)
}

type JQOptions

type JQOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

func NewJQOptions

func NewJQOptions(streams genericclioptions.IOStreams) *JQOptions

func (*JQOptions) Complete

func (o *JQOptions) Complete(c *cobra.Command, args []string) error

Complete copies positional arguments into the JQOptions config and initializes objects needed for Run.

func (*JQOptions) Run

func (o *JQOptions) Run() error

Run fetches and processes resources as specified by the JQOptions.

func (*JQOptions) ValidateArgs

func (o *JQOptions) ValidateArgs(c *cobra.Command, args []string) error

ValidateArgs checks the validity of positional args.

Jump to

Keyboard shortcuts

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