command

package
v0.7.9-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetExecutorDefault

func SetExecutorDefault(item Item) (err error)

SetExecutorDefault executor赋值

Types

type Item

type Item struct {
	Cmd            *cobra.Command
	DefaultConfig  []byte
	Fnc            func(item OperationItem) error
	ConfigFilePath string
	OptionFunc     map[string]interface{}
}

Item 初始化赋值实体

type OperationItem

type OperationItem struct {
	B          []byte
	Logger     *logrus.Logger
	OptionFunc map[string]interface{}
}

OperationItem 操作实体

Jump to

Keyboard shortcuts

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