ctx

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 14 Imported by: 18

Documentation

Index

Constants

View Source
const (
	INDEX   = "index"
	CMDS    = "cmds"
	ARGS    = "args"
	OPTS    = "opts"
	STYLE   = "style"
	DISPLAY = "display"
	ACTION  = "action"
	TOOLS   = "tools"
	RUN     = "run"
	SHIP    = "ship"

	ICONS = ice.CTX_ICONS
	TRANS = ice.CTX_TRANS
	TITLE = ice.CTX_TITLE
)
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 *ice.Message, file string, arg ...ice.Any) *ice.Message

func DisplayBase added in v1.3.0

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

func DisplayLocal added in v1.3.0

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

func DisplayLocalInner added in v1.6.1

func DisplayLocalInner(m *ice.Message, arg ...ice.Any) *ice.Message

func DisplayStory added in v1.3.0

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

func DisplayStoryChina added in v1.6.5

func DisplayStoryChina(m *ice.Message, arg ...ice.Any) *ice.Message

func DisplayStoryForm added in v1.8.3

func DisplayStoryForm(m *ice.Message, arg ...ice.Any) *ice.Message

func DisplayStoryJSON added in v1.3.0

func DisplayStoryJSON(m *ice.Message, arg ...ice.Any) *ice.Message

func DisplayStorySpide added in v1.3.0

func DisplayStorySpide(m *ice.Message, arg ...ice.Any) *ice.Message

func DisplayStudio added in v1.5.19

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

func DisplayTable added in v1.3.0

func DisplayTable(m *ice.Message, arg ...ice.Any) *ice.Message

func DisplayTableCard added in v1.3.0

func DisplayTableCard(m *ice.Message, arg ...ice.Any) *ice.Message

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 GetCmdHelp added in v1.8.3

func GetCmdHelp(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 ShortCmd added in v1.8.5

func ShortCmd(key string) string

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