Skip to main content

Module cli

Module cli 

Source
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