ctx

package
v1.9.51 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 13 Imported by: 18

Documentation

Index

Constants

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

	ICONS = ice.CTX_ICONS
	TRANS = ice.CTX_TRANS
	TITLE = ice.CTX_TITLE
	INPUT = html.INPUT
)
View Source
const COMMAND = "command"
View Source
const CONFIG = "config"
View Source
const CONTEXT = "context"
View Source
const CTX = "ctx"

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

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

func DisplayInput added in v1.9.10

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

func DisplayInputKey added in v1.9.10

func DisplayInputKey(m *ice.Message, 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 DisplayStoryPie added in v1.9.19

func DisplayStoryPie(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 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 ProcessField added in v1.4.0

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

func ProcessFloat added in v1.4.0

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

func ResourceFile added in v1.9.5

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

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) *ice.Message

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