Documentation
¶
Overview ¶
Package commands wires the Slack Web API client (internal/api) into a Cobra command tree. Command groups self-register via register() so a fresh tree can be built per process (and per test). Shared concerns — client construction and rendering — live here once.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APICommands ¶
func APICommands() []apiCmdInfo
APICommands returns the classification of every API-backed command (for agent guard tests).
func ExpandAliases ¶
ExpandAliases rewrites os.Args before cobra parses them: if the first argument names a user-defined alias AND is not a real built-in command, it is replaced by the alias's expansion. Built-ins always win, so an alias can never shadow `auth`, `message`, etc.
func NewRootCmd ¶
NewRootCmd builds a fresh command tree with all registered groups attached.
Types ¶
This section is empty.
Source Files
¶
- agent.go
- agent_hosts.go
- alias.go
- api.go
- assistant.go
- auth.go
- bookmarks.go
- canvases.go
- completion.go
- config.go
- conversations.go
- dnd.go
- doctor.go
- export.go
- files.go
- generic.go
- init.go
- listen.go
- log.go
- mcp.go
- msg.go
- msg_template.go
- pins.go
- prompt.go
- reactions.go
- recorder.go
- root.go
- saved.go
- search.go
- team.go
- unreads.go
- update.go
- usergroups.go
- users.go
- version.go