Documentation
¶
Index ¶
- Constants
- func AgentCommandMetadata() map[string]string
- func AgentEntryMetadata() map[string]string
- func BuildBootstrapArgs(initialArgv []string) []string
- func IsAgentCommand(metadata map[string]string) bool
- func IsAgentEntryCommand(metadata map[string]string) bool
- func Meta(metadata map[string]string, key string) string
Constants ¶
View Source
const ( // CommandMetaMode is the metadata key used to mark command mode. CommandMetaMode = "mode" // CommandMetaModeAgent indicates the command should run in agent mode. CommandMetaModeAgent = "agent" // CommandMetaAgentCommand marks a command as an agent command. CommandMetaAgentCommand = "agent.command" // CommandMetaAgentEntry marks a command as an agent entry command. CommandMetaAgentEntry = "agent.entry" // CommandName is the built-in agentline command name. CommandName = "agentline" // InitialArgKey is the hidden argument key used for bootstrap argv injection. InitialArgKey = "initial-arg" )
Variables ¶
This section is empty.
Functions ¶
func AgentCommandMetadata ¶
AgentCommandMetadata returns metadata marking a command as an agent command.
func AgentEntryMetadata ¶
AgentEntryMetadata returns metadata marking a command as an agent entry.
func BuildBootstrapArgs ¶
BuildBootstrapArgs converts raw argv into repeated hidden-flag format.
func IsAgentCommand ¶
IsAgentCommand reports whether metadata marks a command as agent command.
func IsAgentEntryCommand ¶
IsAgentEntryCommand reports whether metadata marks a command as an interactive entry that should auto-route to agentline.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.