console

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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

func (s AppInfo) Description() string

Description of the command

func (AppInfo) Handle added in v0.10.2

func (s AppInfo) Handle(c inter.Cli) inter.ExitCode

Handle contains the logic of the command

func (AppInfo) Name added in v0.10.2

func (s AppInfo) Name() string

Name 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

func (s AppServe) Description() string

Description of the command

func (AppServe) Handle added in v0.8.2

func (s AppServe) Handle(c inter.Cli) inter.ExitCode

Handle contains the logic of the command

func (AppServe) Name added in v0.8.2

func (s AppServe) Name() string

Name of the command

type Baker added in v0.5.4

type Baker struct{}

func (Baker) Description added in v0.5.4

func (b Baker) Description() string

func (Baker) Handle added in v0.5.4

func (b Baker) Handle(c inter.Cli) inter.ExitCode

func (Baker) Name added in v0.5.4

func (b Baker) Name() string

type Kernel

type Kernel struct {
	App           inter.App
	Writer        io.Writer
	WriterErr     io.Writer
	Commands      []inter.Command
	FlagProviders []func() []flag.Getter
}

func (Kernel) GetCommands added in v0.5.4

func (k Kernel) GetCommands() []inter.Command

func (Kernel) GetFlagProviders added in v0.5.4

func (k Kernel) GetFlagProviders() []func() []flag.Getter

func (Kernel) Handle

func (k Kernel) Handle() inter.ExitCode

type LogClear

type LogClear struct{}

func (LogClear) Description

func (l LogClear) Description() string

func (LogClear) Handle

func (l LogClear) Handle(c inter.Cli) inter.ExitCode

func (LogClear) Name

func (l LogClear) Name() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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