Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AppInfo ¶ added in v0.10.2
type AppInfo struct { }
AppInfo shows the info of the application.
func (AppInfo) Description ¶ added in v0.10.2
Description of the command
type AppServe ¶ added in v0.8.2
type AppServe struct { Host string `short:"h" flag:"host" description:"The host address to serve the application on [default: \"127.0.0.1\"]"` Port int `short:"p" flag:"port" description:"The port to serve the application on"` }
AppServe starts the http server to handle requests.
func (AppServe) Description ¶ added in v0.8.2
Description of the command
type Kernel ¶
type Kernel struct { App inter.App Writer io.Writer WriterErr io.Writer Commands []inter.Command FlagProviders []func() []flag.Getter // Deprecated: FlagProviders is deprecated and will be removed in version 1.0. Use Getters instead. Getters []flag.Getter // This list include custom flag.Getters, you can create custom types to cast flags from the command to a value. }
func (Kernel) GetCommands ¶ added in v0.5.4
Source Files ¶
Click to show internal directories.
Click to hide internal directories.