pub struct Cli {Show 17 fields
pub prompt: Option<String>,
pub session: Option<String>,
pub continue_session: bool,
pub new_session: bool,
pub run: Option<String>,
pub branch_from: Option<String>,
pub profile: Option<String>,
pub continuation_mode: ContinuationModeArg,
pub worker: Option<String>,
pub worker_label: Option<String>,
pub worktree: Option<String>,
pub worktree_name: Option<String>,
pub branch: Option<String>,
pub output: Option<OutputMode>,
pub hitl: Option<HitlPolicy>,
pub store: Option<String>,
pub command: Option<CliCommand>,
}Expand description
Top-level CLI.
Fields§
§prompt: Option<String>Prompt shorthand for headless runs.
session: Option<String>Append a run to the selected session.
continue_session: boolContinue the latest local session.
new_session: boolCreate a fresh session.
run: Option<String>Restore from a specific run before appending a run.
branch_from: Option<String>Branch from a specific run before appending a run.
profile: Option<String>Agent profile name or YAML path.
continuation_mode: ContinuationModeArgAgent materialization semantics for a restored run.
worker: Option<String>Enable worker mode or set an optional worker label.
worker_label: Option<String>Explicit worker label.
worktree: Option<String>Enable a git worktree or set an optional worktree name/path.
worktree_name: Option<String>Explicit worktree name/path.
branch: Option<String>Git branch for worktree metadata.
output: Option<OutputMode>Output mode.
hitl: Option<HitlPolicy>Headless human-in-the-loop policy for prompt shorthand.
store: Option<String>Override local store database path.
command: Option<CliCommand>Optional subcommand.
Trait Implementations§
Source§impl Args for Cli
impl Args for Cli
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Cli
impl CommandFactory for Cli
Source§impl FromArgMatches for Cli
impl FromArgMatches for Cli
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Cli
impl Parser for Cli
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Cli
impl RefUnwindSafe for Cli
impl Send for Cli
impl Sync for Cli
impl Unpin for Cli
impl UnsafeUnpin for Cli
impl UnwindSafe for Cli
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more