Expand description
CLI command routing and handlers
Re-exports§
pub use introspection::generate_commands_list;pub use introspection::generate_help;pub use introspection::generate_schema;pub use introspection::CommandDef;pub use introspection::CommandsListResponse;pub use introspection::HelpResponse;pub use introspection::SchemaResponse;
Modules§
- introspection
- CLI introspection - self-describing CLI capabilities
Structs§
- CliContext
- CLI execution context
Functions§
- get_
all_ options - Get all options with a specific prefix from args Supports both –key=value and –key value formats (can be mixed) When using space-separated format, value must not start with ‘-’
- get_
api_ client - Get API client for a profile (legacy function, maintains backward compatibility)
- get_
api_ client_ with_ token_ type - Get API client for a profile with optional token type selection
- get_
option - Get option value from args Supports both –key=value and –key value formats When using space-separated format, value must not start with ‘-’
- handle_
export_ command - Handle auth export command
- handle_
import_ command - Handle auth import command
- has_
flag - Check if a flag exists in args
- is_
non_ interactive_ error - Check if error message indicates non-interactive mode failure
- parse_
token_ type - Parse token type from command line arguments Supports both –token-type=VALUE and –token-type VALUE formats
- print_
conv_ usage - print_
file_ usage - print_
msg_ usage - print_
react_ usage - print_
thread_ usage - print_
users_ usage - resolve_
profile_ name - Resolve profile name with priority: –profile flag > SLACK_PROFILE env > “default”
- resolve_
token_ for_ wrapper - Resolve token with priority: SLACK_TOKEN env > token store
- run_
api_ call - Run the api call command
- run_
auth_ login - Run the auth login command with argument parsing
- run_
conv_ history - run_
conv_ list - run_
conv_ search - run_
conv_ select - run_
file_ download - run_
file_ upload - run_
install_ skill - Run install-skills command
- run_
msg_ delete - run_
msg_ post - run_
msg_ update - run_
react_ add - run_
react_ remove - run_
search - run_
thread_ get - run_
users_ cache_ update - run_
users_ info - run_
users_ resolve_ mentions - should_
output_ raw - Determine if output should be raw based on SLACKRS_OUTPUT environment variable and –raw flag
- wrap_
with_ envelope - Wrap response with unified envelope including metadata
- wrap_
with_ envelope_ and_ token_ type - Wrap response with unified envelope including metadata and explicit token type