ctx

package
v1.5.22 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 12 Imported by: 16

Documentation

Index

Constants

View Source
const (
	INDEX   = "index"
	OPTS    = "opts"
	ARGS    = "args"
	SHIP    = "ship"
	STYLE   = "style"
	DISPLAY = "display"
	ACTION  = "action"
	RUN     = "run"
)
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 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 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 CmdInputs added in v1.5.5

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

func CmdList added in v1.4.7

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

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 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 GetPod added in v1.5.20

func GetPod(m *ice.Message) 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 PodCmd added in v1.3.0

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

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

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

func ProcessField added in v1.4.0

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

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