Skip to main content

Crate prompter

Crate prompter 

Source
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§

AgentSubcommand
Ungated agent-skill subcommand surface.
MetaCommand
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 Cli value into the executable AppMode.
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.