Skip to main content

Crate soma_cli

Crate soma_cli 

Source
Expand description

CLI — thin shim that parses args, dispatches service actions, formats output.

The CLI uses the same service layer as the MCP server. No business logic lives here.

Customize: add subcommands to match your service’s operations.

§Usage

soma greet --name Alice
soma echo --message "Hello!"
soma status
soma doctor [--json]

Re-exports§

pub use setup::apply_plugin_options;
pub use setup::run_setup;
pub use setup::SetupCommand;

Modules§

doctor
doctor — pre-flight environment validation command.
setup
Plugin setup and repair commands.
watch
example watch — health monitor for the MCP HTTP server.

Structs§

CliInvocation
StandardCliIo

Enums§

Command
ProviderCommand

Constants§

USAGE

Traits§

CliIo

Functions§

confirm_destructive_action_allowed
parse_args
Parse CLI arguments from std::env::args().
parse_args_from
run
Run a CLI command, print the result, and exit.
run_non_executing_provider_command
run_package_generate
usage

Type Aliases§

CliError