Documentation
¶
Index ¶
- func CommandsHelp() string
- func ExpandUniqueSlashPrefix(line, help string, localCommands ...string) string
- func IsOpenCommandLine(line string) bool
- func LooksLikeSlashCommand(line string) bool
- func ParseSlashCommands(help string) []string
- func SlashCommandNames(localCommands ...string) []string
- type SlashCommandOption
- type SlashCommandSpec
- type SubmitClass
- type SubmitClassification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandsHelp ¶
func CommandsHelp() string
func ExpandUniqueSlashPrefix ¶
func IsOpenCommandLine ¶
func LooksLikeSlashCommand ¶
func ParseSlashCommands ¶
func SlashCommandNames ¶
Types ¶
type SlashCommandOption ¶
type SlashCommandSpec ¶
type SlashCommandSpec struct {
Name string
Description string
ArgumentHint string
AutoRun bool
Options []SlashCommandOption
}
func DefaultSlashCommands ¶
func DefaultSlashCommands() []SlashCommandSpec
type SubmitClass ¶
type SubmitClass int
const ( SubmitText SubmitClass = iota SubmitLocalReadOnly SubmitLocalUI SubmitLocalMode SubmitLocalMutating SubmitExit SubmitTurnStarting SubmitUsageError )
type SubmitClassification ¶
type SubmitClassification struct {
Line string
Class SubmitClass
}
func ClassifySubmit ¶
func ClassifySubmit(line, help string, localCommands ...string) SubmitClassification
func (SubmitClassification) BusyImmediate ¶
func (c SubmitClassification) BusyImmediate() bool
func (SubmitClassification) LocalNoTurn ¶
func (c SubmitClassification) LocalNoTurn() bool
func (SubmitClassification) SubmitBarrier ¶
func (c SubmitClassification) SubmitBarrier() bool
Click to show internal directories.
Click to hide internal directories.