cmd

package
v0.31.34 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgencyCmd = &cobra.Command{
	Use:   "agency",
	Short: "Parent command for starting and pinging agency",
	Long: `
Parent command for starting and pinging agency
	`,
	Run: func(cmd *cobra.Command, args []string) {
		SubCmdNeeded(cmd)
	},
}

AgencyCmd represents the agency command

Functions

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 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 SubCmdNeeded

func SubCmdNeeded(cmd *cobra.Command)

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

Types

type ClientFlags

type ClientFlags struct {
	WalletName string
	WalletKey  string
	URL        string
}

ClientFlags agent flags

type RootFlags

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

RootFlags are the common flags

Jump to

Keyboard shortcuts

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