cmd

package
v1.32.3 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2025 License: Apache-2.0 Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Set provides an implementation and interface for Cmd.

Functions

This section is empty.

Types

type Clean added in v1.32.0

type Clean struct {
	Clean clean.Interface
}

func (*Clean) New added in v1.32.0

func (cmd *Clean) New() *cobra.Command

type Cmd

type Cmd struct {
	Root     *Root
	GetToken *GetToken
	Setup    *Setup
	Clean    *Clean
	Logger   logger.Interface
}

Cmd provides interaction with command line interface (CLI).

func (*Cmd) Run

func (cmd *Cmd) Run(ctx context.Context, args []string, version string) int

Run parses the command line arguments and executes the specified use-case. It returns an exit code, that is 0 on success or 1 on error.

type GetToken

type GetToken struct {
	GetToken credentialplugin.Interface
	Logger   logger.Interface
}

func (*GetToken) New

func (cmd *GetToken) New() *cobra.Command

type Interface

type Interface interface {
	Run(ctx context.Context, args []string, version string) int
}

type Root

type Root struct {
	Standalone standalone.Interface
	Logger     logger.Interface
}

func (*Root) New

func (cmd *Root) New() *cobra.Command

type Setup

type Setup struct {
	Setup setup.Interface
}

func (*Setup) New

func (cmd *Setup) New() *cobra.Command

Jump to

Keyboard shortcuts

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