Help us shape the future of Go! Take the 2026 Go Developer Survey

command

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExtensionName = "command"
	SystemVersion = "v1"

	FunctionGetCommands    = "extension.command.metadata.getCommands"
	FunctionGetSuggestions = "extension.command.command.getSuggestions"
	FunctionExecute        = "extension.command.command.execute"

	ScopeFront = "front"
	ScopeDesk  = "desk"

	AlfModeDisable   = "disable"
	AlfModeRecommend = "recommend"
)

Variables

This section is empty.

Functions

Types

type ActionResult

type ActionResult = sdkv1.CommandResult

type AutoCompleteArgument

type AutoCompleteArgument = sdkv1.CommandAutoCompleteArgument

type Chat

type Chat = sdkv1.ExtensionChat

type Choice

type Choice = sdkv1.CommandChoice

type Config

type Config = sdkv1.CommandConfig

type ExecuteRequest

type ExecuteRequest = sdkv1.CommandExecuteInput

type ExtensionBuilder

type ExtensionBuilder struct {
	// contains filtered or unexported fields
}

func Extension

func Extension() *ExtensionBuilder

func (*ExtensionBuilder) Execute

func (*ExtensionBuilder) ExtensionFunction

func (b *ExtensionBuilder) ExtensionFunction(name string, opts ...appsdk.FunctionOption) *ExtensionBuilder

func (*ExtensionBuilder) Function

func (b *ExtensionBuilder) Function(name string, opts ...appsdk.FunctionOption) *ExtensionBuilder

func (*ExtensionBuilder) Register

func (b *ExtensionBuilder) Register(app *appsdk.App) error

type GetCommandsRequest

type GetCommandsRequest = sdkv1.CommandGetCommandsInput

type GetCommandsResponse

type GetCommandsResponse = sdkv1.CommandGetCommandsOutput

type GetSuggestionsRequest

type GetSuggestionsRequest = sdkv1.CommandGetSuggestionsInput

type GetSuggestionsResponse

type GetSuggestionsResponse = sdkv1.CommandGetSuggestionsOutput

type NameDescI18n

type NameDescI18n = sdkv1.CommandNameDescI18N

type NameI18n

type NameI18n = sdkv1.CommandNameI18N

type ParamDefinition

type ParamDefinition = sdkv1.CommandParamDefinition

type ProtoActionResult

type ProtoActionResult = sdkv1.CommandResult

type ProtoAutoCompleteArgument

type ProtoAutoCompleteArgument = sdkv1.CommandAutoCompleteArgument

type ProtoChat

type ProtoChat = sdkv1.ExtensionChat

type ProtoChoice

type ProtoChoice = sdkv1.CommandChoice

type ProtoConfig

type ProtoConfig = sdkv1.CommandConfig

type ProtoExecuteRequest

type ProtoExecuteRequest = sdkv1.CommandExecuteInput

type ProtoGetCommandsRequest

type ProtoGetCommandsRequest = sdkv1.CommandGetCommandsInput

type ProtoGetCommandsResponse

type ProtoGetCommandsResponse = sdkv1.CommandGetCommandsOutput

type ProtoGetSuggestionsRequest

type ProtoGetSuggestionsRequest = sdkv1.CommandGetSuggestionsInput

type ProtoGetSuggestionsResponse

type ProtoGetSuggestionsResponse = sdkv1.CommandGetSuggestionsOutput

type ProtoNameDescI18n

type ProtoNameDescI18n = sdkv1.CommandNameDescI18N

type ProtoNameI18n

type ProtoNameI18n = sdkv1.CommandNameI18N

type ProtoParamDefI18n

type ProtoParamDefI18n = sdkv1.CommandParamDefI18N

type ProtoParamDefinition

type ProtoParamDefinition = sdkv1.CommandParamDefinition

type ProtoTrigger

type ProtoTrigger = sdkv1.CommandTrigger

type Suggestion

type Suggestion = sdkv1.CommandChoice

type Trigger

type Trigger = sdkv1.CommandTrigger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL