cmd

package
Version: v0.0.0-...-e652847 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger xbus.Logger

Logger is a logger automatically configured by command line options

View Source
var RootCmd = &cobra.Command{
	Use:   "xbusctl",
	Short: "Xbus control utility",
	Long: `Xbus control utility

xbusctl is a utility for managing a xbus instance.`,
	Run: version.Cmd,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetClient

func GetClient(nocert bool) (*xbus.Client, error)

GetClient returns a XBusClient connected (if relevant) to the bus using the cli options

Types

This section is empty.

Jump to

Keyboard shortcuts

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