Skip to main content

Module shared

Module shared 

Source
Expand description

Cross-command CLI utilities shared across command modules.

Aggregates the CommandOutput artifact model and its output types, profile resolution (resolve_profile_path, resolve_profile_with_data), argument parsers, and text helpers. Also defines the define_pool_command! macro used by the log commands to generate pooled execution entry points.

Copyright (c) systemprompt.io — Business Source License 1.1. See https://systemprompt.io for licensing details.

Re-exports§

pub use command_result::CommandOutput;
pub use command_result::KeyValueItem;
pub use command_result::KeyValueOutput;
pub use command_result::SuccessOutput;
pub use command_result::TableOutput;
pub use command_result::TextOutput;
pub use command_result::render_result;
pub use parsers::parse_email;
pub use parsers::parse_profile_name;
pub use profile::ProfileResolutionError;
pub use profile::is_path_input;
pub use profile::resolve_profile_from_path;
pub use profile::resolve_profile_path;
pub use profile::resolve_profile_with_data;

Modules§

command_result
Structured command output and its terminal/JSON rendering.
disk_logs
On-disk log-file discovery and tailing shared by the agent and MCP logs commands.
parsers
CLI value parsers for fail-fast validation at command line boundaries.
profile
Profile discovery and resolution shared across CLI commands.
project
Project-root detection and the typed ProjectRoot path.
text
Shared text helpers for CLI rendering.

Enums§

ChartType

Functions§

database_scoped_command_error
truncate_with_ellipsis