commands

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 28 Imported by: 0

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

func ExpandAliases(args []string) []string

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

func NewRootCmd() *cobra.Command

NewRootCmd builds a fresh command tree with all registered groups attached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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