cmd

package
v0.25.142 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 18 Imported by: ? modules, 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

func BaseCfg added in v0.25.18

func BaseCfg() (_ *rpc.ClientCfg, err error)

func BindEnvs

func BindEnvs(envMap map[string]string, cmdName string) (err error)

BindEnvs calls viper.BindEnv with envMap and cmdName which can be empty if flag is general.

func DryRun

func DryRun() bool

DryRun returns a value of a dry run flag. That's a helper function to extend this CLI with own commands and offering same base commands as this CLI.

func Execute

func Execute()

Execute root

func FlagInfo

func FlagInfo(info, cmdPrefix, envName string) string

func RootCmd

func RootCmd() *cobra.Command

RootCmd returns a current root command which can be used for adding own commands in an own repo.

implCmd.AddCommand(listCmd)

That's a helper function to extend this CLI with own commands and offering same base commands as this CLI.

func ServiceAddr

func ServiceAddr() string

func SubCmdNeeded

func SubCmdNeeded(cmd *cobra.Command)

SubCmdNeeded prints the help and error messages because the cmd is abstract.

func TLSPath added in v0.24.7

func TLSPath() string

Types

type ClientFlags

type ClientFlags struct {
	WalletName string
	WalletKey  string
	URL        string
}

ClientFlags agent flags

type RootFlags

type RootFlags struct {
	ServiceAddr string
	TLSPath     string
	// contains filtered or unexported fields
}

RootFlags are the common flags

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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