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
Render one or more profiles’ content to a writer.
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 primary config plus its transitive imports, using the default library root (~/.local/prompter/library) only when no -c override is
run_validate_stdout
Validate configuration and output results to stdout.
unescape
A single profile definition: its raw dependency strings plus the library directory that should be used to resolve any .md deps it declares.