cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIOption

type CLIOption func(cli *SudockerCli) error

CLIOption 是传递给Sudocker Cli的函数式参数

func WithBaseContext

func WithBaseContext(ctx context.Context) CLIOption

WithBaseContext 设置cli基本的上下文环境

func WithStandardStreams

func WithStandardStreams() CLIOption

type Cli

type Cli interface {
	Streams
	SetIn(in *streams.In)
	ConfigFile() *configfile.ConfigFile
	Apply(ops ...CLIOption) error
}

type Streams

type Streams interface {
	In() *streams.In
	Out() *streams.Out
	Err() *streams.Out
}

type SudockerCli

type SudockerCli struct {
	// contains filtered or unexported fields
}

func NewSudockerCLi

func NewSudockerCLi(ops ...CLIOption) (*SudockerCli, error)

func (*SudockerCli) Apply

func (cli *SudockerCli) Apply(ops ...CLIOption) error

func (*SudockerCli) ConfigFile

func (cli *SudockerCli) ConfigFile() *configfile.ConfigFile

func (*SudockerCli) Err

func (cli *SudockerCli) Err() *streams.Out

func (*SudockerCli) In

func (cli *SudockerCli) In() *streams.In

func (*SudockerCli) Initialize

func (cli *SudockerCli) Initialize(opts *cliflags.ClientOptions, ops ...CLIOption) error

func (*SudockerCli) Out

func (cli *SudockerCli) Out() *streams.Out

Out returns the writer used for stdout

func (*SudockerCli) SetIn

func (cli *SudockerCli) SetIn(in *streams.In)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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