ctx

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 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"

Variables

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

Functions

func AddFileCmd added in v1.3.0

func AddFileCmd(dir, key string)

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

func Save(m *ice.Message, arg ...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