pub struct Cli {
pub command: Commands,
pub json: bool,
pub output: Option<OutputMode>,
pub no_color: bool,
pub repo: Option<PathBuf>,
pub verbose: u8,
pub quiet: bool,
pub op_id: Option<String>,
}Expand description
Heddle: An AI-native version control system.
Fields§
§command: Commands§json: boolOutput JSON (deprecated; use --output json).
Still functional — both forms route to JSON. Kept for compatibility with scripts and agent harnesses written against the old surface. Emits a one-shot stderr warning on first use within a process.
output: Option<OutputMode>Output format. auto (default) renders text on a TTY and JSON when piped;
json and text override regardless of stream.
no_color: boolDisable colored output.
repo: Option<PathBuf>Repository path (default: find .heddle in ancestors).
verbose: u8Increase verbosity.
quiet: boolDecrease verbosity.
op_id: Option<String>Client-supplied operation id (UUID v4) for idempotent retries.
State-changing verbs that pass this id to the dedup store
return the original outcome on replay. Unset by default; agents
supply one explicitly. Honoured for any state-changing verb that
has been wired through the dedup store. Also reads
HEDDLE_OPERATION_ID from the environment.
Hidden from default --help to keep the human surface uncluttered;
see heddle help operation-ids for the full agent-facing contract.
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CliContext for Cli
impl CliContext for Cli
Source§fn repo_path(&self) -> Option<&Path>
fn repo_path(&self) -> Option<&Path>
--repo override; None means “use the process’s current
directory.”Source§fn operation_id_wire(&self) -> String
fn operation_id_wire(&self) -> String
--op-id override for idempotent gRPC calls. Empty string
means the caller did not supply one and the server should not
dedupe.Source§fn should_output_json(&self, repo_config: Option<&Config>) -> bool
fn should_output_json(&self, repo_config: Option<&Config>) -> bool
--json / --output cli flags, the
user’s global config, and (when supplied) the repo’s
output.format config. Hosted commands typically pass
Some(repo.config()) after opening the repo and None
otherwise.Source§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>
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>
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
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request