sdrancli

package module
v0.0.0-...-669fd62 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitSuccess means nominal status
	ExitSuccess = iota

	// ExitError means general error
	ExitError

	// ExitBadConnection means failed connection to remote service
	ExitBadConnection

	// ExitBadArgs means invalid argument values were given
	ExitBadArgs = 128
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command and any sub-commands.

func ExitWithError

func ExitWithError(code int, err error)

ExitWithError prints the specified error and exits program with the given error code.

func ExitWithErrorMessage

func ExitWithErrorMessage(msg string, args ...interface{})

ExitWithErrorMessage prints the specified message and exits program with the given error code.

func ExitWithOutput

func ExitWithOutput(msg string, output ...interface{})

ExitWithOutput prints the specified entity and exits program with success.

func ExitWithSuccess

func ExitWithSuccess()

ExitWithSuccess exits program with success without any output.

func GenerateCliDocs

func GenerateCliDocs()

GenerateCliDocs generate markdown files for onos-cli commands

func GetRootCommand

func GetRootCommand() *cobra.Command

GetRootCommand returns the root onos command

func Output

func Output(msg string, args ...interface{})

Output prints the specified format message with arguments to stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

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