Skip to main content

AppMode

Enum AppMode 

Source
pub enum AppMode {
    Run {
        profiles: Vec<String>,
        family: Option<FamilyName>,
        separator: Option<String>,
        pre_prompt: Option<String>,
        post_prompt: Option<String>,
        framing: Framing,
        config: Option<PathBuf>,
        json: bool,
    },
    List {
        config: Option<PathBuf>,
        json: bool,
    },
    Tree {
        config: Option<PathBuf>,
        json: bool,
    },
    Validate {
        config: Option<PathBuf>,
        json: bool,
    },
    Init,
    Version {
        json: bool,
    },
    License,
    Help,
    Completions {
        shell: Shell,
    },
    Doctor {
        json: bool,
    },
    Agent {
        command: AgentSubcommand,
    },
}
Expand description

Application execution modes after parsing command-line arguments.

This enum represents the resolved execution mode after processing both subcommands and direct profile arguments.

Variants§

§

Run

Render one or more profiles with optional separator and pre-prompt

Fields

§profiles: Vec<String>

Profile name(s) to render

§family: Option<FamilyName>

Optional model family used to select fragment variants

§separator: Option<String>

Optional separator between concatenated files

§pre_prompt: Option<String>

Optional custom pre-prompt text

§post_prompt: Option<String>

Optional custom post-prompt text

§framing: Framing

Whether to wrap fragments in framing context or emit bare bodies

§config: Option<PathBuf>

Optional configuration file override

§json: bool

Output in JSON format

§

List

List all available profiles using an optional config override

Fields

§config: Option<PathBuf>

Optional configuration file override

§json: bool

Output in JSON format

§

Tree

Show dependency tree for profiles

Fields

§config: Option<PathBuf>

Optional configuration file override

§json: bool

Output in JSON format

§

Validate

Validate configuration and library references with an optional config override

Fields

§config: Option<PathBuf>

Optional configuration file override

§json: bool

Output in JSON format

§

Init

Initialize default configuration and library

§

Version

Show version information

Fields

§json: bool

Output in JSON format

§

License

Show license information

§

Help

Show help information

§

Completions

Generate shell completion scripts

Fields

§shell: Shell

Shell to generate completions for

§

Doctor

Check health and configuration status

Fields

§json: bool

Output in JSON format

§

Agent

Agent-skill artifact subcommand (routed through cli-common).

Fields

§command: AgentSubcommand

Subcommand to dispatch.

Trait Implementations§

Source§

impl Debug for AppMode

Source§

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

Formats the value using the given formatter. Read more

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.