Skip to main content

Crate systemprompt_cli

Crate systemprompt_cli 

Source
Expand description

systemprompt.io command-line application.

Implements the systemprompt binary: the command tree (admin, analytics, build, cloud, core, infrastructure, plugins, web), output formatting, interactive prompts, and session handling. run is the process entry point; CliConfig and the settings enums control verbosity, color, and output format.

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

Re-exports§

pub use cli_settings::CliConfig;
pub use cli_settings::ColorMode;
pub use cli_settings::OutputFormat;
pub use cli_settings::VerbosityLevel;
pub use commands::admin;
pub use commands::analytics;
pub use commands::build;
pub use commands::cloud;
pub use commands::core;
pub use commands::infrastructure;
pub use commands::plugins;
pub use commands::web;
pub use context::CommandContext;
pub use env_overrides::EnvOverrides;
pub use env_overrides::SessionEnv;
pub use interactive::DialoguerPrompter;
pub use interactive::Prompter;
pub use interactive::ScriptedPrompter;
pub use runner::args;
pub use runner::run;

Modules§

cli_settings
CLI-wide runtime settings: output format, verbosity, colour, and interactivity.
commands
Top-level CLI command groups.
context
Per-invocation command context.
descriptor
Per-command bootstrap descriptor: which of profile/secrets/paths a command needs.
env_overrides
Process-environment snapshot for the CLI.
environment
Detection of the CLI’s execution environment (TTY, CI, subprocess).
interactive
Interactive prompting helpers shared across commands.
paths
Resolved filesystem paths the CLI operates against.
presentation
Terminal presentation widgets.
runner
CLI runtime entry point and bootstrap helpers.
session
CLI session lifecycle: resolve, create, persist, and clear sessions.
shared
Cross-command CLI utilities shared across command modules.

Macros§

define_pool_command