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

cli

package
v0.57.22 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientArgs

type ClientArgs struct {
	// CbusConf is the controller-bus configuration.
	CbusConf cbus_cli.ClientArgs
	// BifrostConf is the bifrost configuration.
	BifrostConf bifrost_cli.ClientArgs
	// HydraConf is the hydra configuration.
	HydraConf hydra_cli.ClientArgs

	// DialAddr is the address to dial.
	DialAddr string
	// contains filtered or unexported fields
}

ClientArgs contains the client arguments and functions.

func (*ClientArgs) BuildClient

func (a *ClientArgs) BuildClient() (api.ForgeDaemonClient, error)

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) BuildFlags

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

BuildFlags attaches the flags to a flag set.

func (*ClientArgs) BuildForgeCommand

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

BuildForgeCommand returns the forge sub-command set.

func (*ClientArgs) GetContext

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

GetContext returns the context.

func (*ClientArgs) GetLogger

func (a *ClientArgs) GetLogger() *logrus.Entry

GetLogger returns the log entry

func (*ClientArgs) SetClient

func (a *ClientArgs) SetClient(client api.ForgeDaemonClient)

SetClient sets the client instance.

func (*ClientArgs) SetContext

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

SetContext sets the context.

func (*ClientArgs) SetLogger

func (a *ClientArgs) SetLogger(le *logrus.Entry)

SetLogger sets the root log entry.

type DaemonArgs

type DaemonArgs struct{}

DaemonArgs contains common flags for forge daemons.

func (*DaemonArgs) ApplyToConfigSet

func (a *DaemonArgs) ApplyToConfigSet(confSet configset.ConfigSet, overwrite bool) error

ApplyToConfigSet applies the configured values to the configset.

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