Documentation ¶
Index ¶
Constants ¶
View Source
const ( Name = "server" Usage = "Run as an HTTP server" Alias = "s" )
Variables ¶
View Source
var CLI = &cli.Command{ Name: Name, Aliases: []string{Alias}, Usage: Usage, Action: func(ctx *cli.Context) error { gcvalues, err := commands.GlobalFlagValues(ctx) if err != nil { return err } xc := app.NewExecutionContext(Name, ctx.String(commands.FlagConsoleFormat)) OnCommand( xc, gcvalues) return nil }, }
View Source
var CommandSuggestion = prompt.Suggest{ Text: Name, Description: Usage, }
Functions ¶
func OnCommand ¶
func OnCommand( xc *app.ExecutionContext, gparams *commands.GenericParams)
OnCommand implements the 'server' command
func RegisterCommand ¶
func RegisterCommand()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.