Help us shape the future of Go! Take the 2026 Go Developer Survey

cli

package
v0.53.5 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientArgs

type ClientArgs struct {

	// Interactive indicates we will pretty-print outputs.
	Interactive bool

	// DialAddr is the address to dial.
	DialAddr string

	// ExecConfigSetPath is the path to the exec controller request to execute.
	ExecConfigSetPath string
	// contains filtered or unexported fields
}

ClientArgs contains the client arguments and functions.

func (*ClientArgs) BuildClient

BuildClient builds the client or returns it if it has been set.

func (*ClientArgs) BuildCommands

func (a *ClientArgs) BuildCommands() []*cli.Command

BuildCommands attaches the commands.

func (*ClientArgs) BuildControllerBusCommand

func (a *ClientArgs) BuildControllerBusCommand() *cli.Command

BuildControllerBusCommand returns the controller-bus sub-command set.

func (*ClientArgs) BuildFlags

func (a *ClientArgs) BuildFlags() []cli.Flag

BuildFlags attaches the flags to a flag set.

func (*ClientArgs) GetContext

func (a *ClientArgs) GetContext() context.Context

GetContext returns the context.

func (*ClientArgs) RunBusInfo

func (a *ClientArgs) RunBusInfo(_ *cli.Context) error

RunBusInfo runs the bus information command.

func (*ClientArgs) RunExecController

func (a *ClientArgs) RunExecController(_ *cli.Context) error

RunExecController runs the execute configset command.

func (*ClientArgs) SetClient

func (a *ClientArgs) SetClient(client bus_api.SRPCControllerBusServiceClient)

SetClient sets the client instance.

func (*ClientArgs) SetContext

func (a *ClientArgs) SetContext(c context.Context)

SetContext sets the context.

type DaemonArgs

type DaemonArgs struct {
	WriteConfig bool
	ConfigPath  string
	APIListen   string
}

DaemonArgs contains common flags for controller-bus daemons.

func (*DaemonArgs) BuildFlags

func (a *DaemonArgs) BuildFlags() []cli.Flag

BuildFlags attaches the flags to a flag set.

Jump to

Keyboard shortcuts

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