cmd

package
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: 20 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:   "xbus-http",
	Short: "Xbus http gateway",
	Long: `Xbus http gateway utility

xbus-http provides rest gateway to xbus.`,
	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