Expand description
Prompter: a CLI tool for composing reusable prompt snippets.
This library provides functionality for managing and rendering prompt snippets from a structured library using TOML configuration files.
Re-exports§
pub use error::PrompterError;pub use cli::*;pub use config::*;pub use profile::*;pub use render::*;pub use scaffold::*;
Modules§
- cli
- CLI argument types and mode resolution.
- completions
- Shell completion generation with dynamic profile suggestions.
- config
- Configuration types and config file loading.
- doctor
- Health check and diagnostics module.
- error
- Error types for the prompter crate.
- profile
- Profile resolution, dependency trees, and listing.
- render
- Profile rendering and output formatting.
- scaffold
- Default configuration and library scaffolding.
Enums§
- Agent
Subcommand - Ungated agent-skill subcommand surface.
- Meta
Command - Canonical metadata commands exposed by the shared CLI contract.
Constants§
- SYSTEM_
BASE_ PROFILE - Profile rendered as the always-on invariant base by
prompter system.
Functions§
- available_
profiles - Return the names of all profiles available in the configured bundle, sorted.
- parse_
args_ from - Parse command-line arguments and return the resolved application mode.
- resolve_
app_ mode - Resolve a parsed
Clivalue into the executableAppMode. - run_
list_ stdout - Load the configured bundle and list its profiles to stdout.
- run_
validate_ stdout - Validate configuration and output results to stdout.
- unescape
- Unescape a small set of C-style backslash escapes (
\n,\t,\r,\",\\) in a user-supplied string, leaving unrecognized escapes intact.