cmd

package
v0.0.0-...-ee1fe45 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientCmd = &cobra.Command{
	Use:     "client <url>",
	Aliases: []string{"c"},
	Short:   "Start the client",
	Long:    "Start the nng client",
	Run: func(cmd *cobra.Command, args []string) {
		client(serverURL, clientName)
	},
}
View Source
var RootCmd = &cobra.Command{
	Use:   "nng",
	Short: "A CLI for testing the nng surveyor pattern.",
	Long:  `A CLI for testing the nng surveyor pattern.`,
}

RootCmd is the root command for limo

View Source
var ServerCmd = &cobra.Command{
	Use:     "server <url>",
	Aliases: []string{"s"},
	Short:   "Start the server",
	Long:    "Start the nng server",
	Run: func(cmd *cobra.Command, args []string) {
		server(serverURL)
	},
}

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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