Skip to main content

Commands

Enum Commands 

Source
pub enum Commands {
    Meta {
        command: MetaCommand,
    },
    Init,
    List,
    Tree,
    Validate,
    Run {
        profiles: Vec<String>,
        family: Option<FamilyName>,
        separator: Option<String>,
        pre_prompt: Option<String>,
        post_prompt: Option<String>,
        bare: bool,
    },
    System {
        profiles: Vec<String>,
        separator: Option<String>,
        pre_prompt: Option<String>,
        post_prompt: Option<String>,
        bare: bool,
    },
}
Expand description

Available subcommands for the prompter CLI.

Each variant represents a different operation mode of the tool.

Variants§

§

Meta

Shared metadata commands.

Fields

§command: MetaCommand

Shared metadata command to execute.

§

Init

Initialize default config and library

§

List

List available profiles

§

Tree

Show dependency tree for profiles

§

Validate

Validate configuration and library references

§

Run

Render one or more profiles (concatenated file contents with deduplication)

Fields

§profiles: Vec<String>

Profile name(s) to render

§family: Option<FamilyName>

Model family used to select fragment variants

§separator: Option<String>

Separator between files

§pre_prompt: Option<String>

Pre-prompt text to inject at the beginning

§post_prompt: Option<String>

Post-prompt text to inject at the end

§bare: bool

Emit only the deduplicated fragments, suppressing the auto-injected default pre-prompt, the date/system context, and the post-prompt (an explicit –pre-prompt/–post-prompt still applies)

§

System

Render the always-on invariant base (the agent system prompt).

Emits the core.base profile, optionally followed by additional profiles. Intended for harness/launcher startup: stamp the output into each agent’s system-prompt site (Codex AGENTS.md, Claude –append-system-prompt, pi SYSTEM.md). Skills inject task context with run and do NOT re-emit this base.

Fields

§profiles: Vec<String>

Additional profile(s) to append after the system base

§separator: Option<String>

Separator between files

§pre_prompt: Option<String>

Pre-prompt text to inject at the beginning

§post_prompt: Option<String>

Post-prompt text to inject at the end

§bare: bool

Emit only the deduplicated fragments, suppressing the auto-injected default pre-prompt, the date/system context, and the post-prompt (an explicit –pre-prompt/–post-prompt still applies)

Trait Implementations§

Source§

impl Debug for Commands

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromArgMatches for Commands

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Commands

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.