cmd

package
v0.0.0-...-cc7b978 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "redshirt-cli-wrapper [command]",
	Short: "An wrapper for converting any app into a Redshirt bot",
	Long: `A wrapper for converting any app into a Redshirt bot using a simple
protocol based on STDIN, STDOUT, STDERR.

Example:

	redshirt-cli-wrapper \
		-addr riker:6000 \
		-cert echo.pem \
		-namespace "echo" \
		-description="echo server" \
		--groups "infra" \
		-usage "echo <msg>: replies with <msg>" \
		/bin/echo-server
`,

	Args:    cobra.MinimumNArgs(1),
	PreRunE: validateArgs,
	RunE:    wrapCmd,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute()

Types

This section is empty.

Jump to

Keyboard shortcuts

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