cmd

package
v0.0.0-...-a99a9fd Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Core

type Core struct {
	Hs SetupHandlers
}

Core 核心引擎 状态维护

func NewCore

func NewCore() *Core

NewCore 初始化

func (*Core) Fire

func (c *Core) Fire()

Fire _

type SetupHandler

type SetupHandler interface {
	// setup前 安装依赖
	BeginSetup() error
	// setup
	DoSetup() error
	// setup后 启动, 环境变量
	EndSetup() error
}

SetupHandler _

type SetupHandlers

type SetupHandlers []SetupHandler

SetupHandlers 接口组

Jump to

Keyboard shortcuts

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