ctx

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 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"
)
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: "标准模块"}
View Source
var Upload = func(*ice.Message) []string { return nil }

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 AddRunChecker added in v1.4.4

func AddRunChecker(cb func(*ice.Message, string, string, ...string) bool)

func CmdAction added in v0.4.3

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

func CmdHandler added in v1.4.4

func CmdHandler(args ...ice.Any) ice.Handler

func CmdList added in v1.4.7

func CmdList(m *ice.Message) *ice.Message

func ConfAction added in v1.3.0

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

func ConfigAuto added in v1.4.4

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

func ConfigFromOption added in v1.3.1

func ConfigFromOption(m *ice.Message, arg ...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 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 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 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 ProcessOpen added in v1.4.4

func ProcessOpen(m *ice.Message, url string)

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