apps

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppCmd

type AppCmd struct {
	// contains filtered or unexported fields
}

AppCmd App命令帮助

func NewAppCmd

func NewAppCmd() *AppCmd

func (*AppCmd) Append

func (this *AppCmd) Append(appendString string) *AppCmd

Append 附加内容

func (*AppCmd) On

func (this *AppCmd) On(arg string, callback func())

On 添加指令

func (*AppCmd) Option

func (this *AppCmd) Option(code string, description string) *AppCmd

Option 选项

func (*AppCmd) Print

func (this *AppCmd) Print()

Print 打印

func (*AppCmd) Product

func (this *AppCmd) Product(product string) *AppCmd

Product 产品

func (*AppCmd) Run

func (this *AppCmd) Run(main func())

Run 运行

func (*AppCmd) RunRestart added in v0.5.3

func (this *AppCmd) RunRestart()

RunRestart 重启

func (*AppCmd) Usage

func (this *AppCmd) Usage(usage string) *AppCmd

Usage 使用方法

func (*AppCmd) Version

func (this *AppCmd) Version(version string) *AppCmd

Version 版本

type CommandHelpOption

type CommandHelpOption struct {
	Code        string
	Description string
}

type Directive

type Directive struct {
	Arg      string
	Callback func()
}

type LogWriter

type LogWriter struct {
	// contains filtered or unexported fields
}

func (*LogWriter) Close

func (this *LogWriter) Close()

func (*LogWriter) Init

func (this *LogWriter) Init()

func (*LogWriter) Write

func (this *LogWriter) Write(message string)

Jump to

Keyboard shortcuts

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