ctx

package
v1.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 12 Imported by: 16

Documentation

Index

Constants

View Source
const (
	INDEX   = "index"
	ARGS    = "args"
	OPTS    = "opts"
	STYLE   = "style"
	DISPLAY = "display"
	ACTION  = "action"
	TOOLS   = "tools"
	RUN     = "run"
	SHIP    = "ship"
)
View Source
const (
	SAVE = "save"
	LOAD = "load"
)
View Source
const COMMAND = "command"
View Source
const CONFIG = "config"
View Source
const CONTEXT = "context"
View Source
const CTX = "ctx"
View Source
const PROCESS = "process"

Variables

View Source
var Index = &ice.Context{Name: CTX, Help: "标准模块"}
View Source
var PodCmd = func(m *ice.Message, arg ...ice.Any) bool { return false }

Functions

func AddFileCmd added in v1.3.0

func AddFileCmd(dir, key string)

func AddProcess added in v1.4.2

func AddProcess(key string, val ice.Any)

func Command added in v1.5.19

func Command(m *ice.Message, arg ...string)

func ConfAction added in v1.3.0

func ConfAction(arg ...ice.Any) ice.Actions

func ConfigFromOption added in v1.3.1

func ConfigFromOption(m *ice.Message, arg ...string)

func ConfigSimple added in v1.5.5

func ConfigSimple(m *ice.Message, key ...string) (res []string)

func Display added in v1.4.4

func Display(m displayMessage, file string, arg ...ice.Any) displayMessage

func DisplayBase added in v1.3.0

func DisplayBase(m displayMessage, file string, arg ...ice.Any) displayMessage

func DisplayLocal added in v1.3.0

func DisplayLocal(m displayMessage, file string, arg ...ice.Any) displayMessage

func DisplayLocalInner added in v1.6.1

func DisplayLocalInner(m displayMessage, arg ...ice.Any) displayMessage

func DisplayStory added in v1.3.0

func DisplayStory(m displayMessage, file string, arg ...ice.Any) displayMessage

func DisplayStoryJSON added in v1.3.0

func DisplayStoryJSON(m displayMessage, arg ...ice.Any) displayMessage

func DisplayStorySpide added in v1.3.0

func DisplayStorySpide(m displayMessage, arg ...ice.Any) displayMessage

func DisplayStudio added in v1.5.19

func DisplayStudio(m *ice.Message, cmd ...string) displayMessage

func DisplayTable added in v1.3.0

func DisplayTable(m displayMessage, arg ...ice.Any) displayMessage

func DisplayTableCard added in v1.3.0

func DisplayTableCard(m displayMessage, arg ...ice.Any) displayMessage

func FileCmd added in v1.3.0

func FileCmd(dir string) string

func FileURI added in v1.3.0

func FileURI(dir string) string

func FormatPretty added in v1.5.5

func FormatPretty(v ice.Any, i, n int) string

func GetCmdFile added in v1.4.0

func GetCmdFile(m *ice.Message, cmds string) (file string)

func GetFileCmd added in v1.3.0

func GetFileCmd(dir string) string

func IsOrderCmd added in v1.4.4

func IsOrderCmd(key string) bool

func Load added in v1.3.0

func Load(m *ice.Message, arg ...string) *ice.Message

func OptionFromConfig added in v1.5.5

func OptionFromConfig(m *ice.Message, arg ...string) string

func Prefix added in v1.5.5

func Prefix(arg ...string) string

func Process added in v1.4.2

func Process(m *ice.Message, key string, args ice.Any, arg ...string)

func ProcessAction added in v1.4.2

func ProcessAction() ice.Actions

func ProcessField added in v1.4.0

func ProcessField(m *ice.Message, cmd string, args ice.Any, arg ...string) *ice.Message

func Run added in v1.4.4

func Run(m *ice.Message, arg ...string)

func Save added in v1.3.0

func Save(m *ice.Message, arg ...string) *ice.Message

func Toolkit added in v1.4.2

func Toolkit(m *ice.Message, arg ...string)

func TravelCmd added in v1.4.0

func TravelCmd(m *ice.Message, cb func(key, file, line string)) *ice.Message

Types

This section is empty.

Jump to

Keyboard shortcuts

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