ctx

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 11 Imported by: 18

Documentation

Index

Constants

View Source
const (
	INDEX   = "index"
	ARGS    = "args"
	STYLE   = "style"
	DISPLAY = "display"
	ACTION  = "action"
	TRANS   = "trans"

	CAN_PLUGIN = "can.plugin"
)
View Source
const (
	SAVE = "save"
	LOAD = "load"
	RICH = "rich"
	GROW = "grow"
)
View Source
const COMMAND = "command"
View Source
const CONFIG = "config"
View Source
const CONTEXT = "context"
View Source
const CTX = "ctx"
View Source
const MESSAGE = "message"
View Source
const OPTION = "option"
View Source
const PROCESS = "process"

Variables

View Source
var Index = &ice.Context{Name: CTX, Help: "标准模块"}

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 CmdAction added in v0.4.3

func CmdAction(args ...ice.Any) ice.Actions

func ConfAction added in v1.3.0

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

func ConfigFromOption added in v1.3.1

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

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 DisplayStory added in v1.3.0

func DisplayStory(m *ice.Message, file string, 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 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 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 Inputs added in v0.7.9

func Inputs(m *ice.Message, field string) bool

func Load added in v1.3.0

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

func PodCmd added in v1.3.0

func PodCmd(m *ice.Message, arg ...ice.Any) bool

func Process added in v1.4.2

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

func ProcessAction added in v1.4.2

func ProcessAction() ice.Actions

func ProcessCommand added in v1.3.0

func ProcessCommand(m *ice.Message, cmd string, val []string, arg ...string)

func ProcessCommandOpt added in v1.3.0

func ProcessCommandOpt(m *ice.Message, arg []string, args ...string)

func ProcessField added in v1.4.0

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

func ProcessFloat added in v1.4.0

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

func ProcessHold added in v1.4.2

func ProcessHold(m *ice.Message, text ...ice.Any)

func ProcessRefresh added in v1.4.2

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

func ProcessRewrite added in v1.4.2

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

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))

Types

This section is empty.

Jump to

Keyboard shortcuts

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