pub struct ProgramDiffCommand {
pub git_ref: String,
pub base: Option<String>,
pub def: Option<String>,
pub format: String,
pub fail_on_widening: bool,
}Expand description
compare current snapshot (or one definition) against a Git ref with structured tree diff; use –base to diff two arbitrary refs from git history
Fields§
§git_ref: Stringgit reference to compare against, e.g. HEAD~1, main, v0.1.0, or a commit SHA
base: Option<String>base git reference for two-ref diff (compare base vs positional ref, both from git history). When omitted, compares working tree against the positional ref.
def: Option<String>narrow diff to a single definition in format ns/def
format: Stringoutput format: human (default), edn (primary structured data), or json (interoperability)
fail_on_widening: boolexit with an error after printing when any definition schema widens a slot (whole Snapshot only; rejected with –def)
Trait Implementations§
Source§impl Clone for ProgramDiffCommand
impl Clone for ProgramDiffCommand
Source§impl Debug for ProgramDiffCommand
impl Debug for ProgramDiffCommand
Source§impl FromArgs for ProgramDiffCommand
impl FromArgs for ProgramDiffCommand
Source§fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
fn from_args(__cmd_name: &[&str], __args: &[&str]) -> Result<Self, EarlyExit>
Construct the type from an input set of arguments. Read more
Source§fn redact_arg_values(
__cmd_name: &[&str],
__args: &[&str],
) -> Result<Vec<String>, EarlyExit>
fn redact_arg_values( __cmd_name: &[&str], __args: &[&str], ) -> Result<Vec<String>, EarlyExit>
Get a String with just the argument names, e.g., options, flags, subcommands, etc, but
without the values of the options and arguments. This can be useful as a means to capture
anonymous usage statistics without revealing the content entered by the end user. Read more
Source§impl PartialEq for ProgramDiffCommand
impl PartialEq for ProgramDiffCommand
impl StructuralPartialEq for ProgramDiffCommand
Source§impl SubCommand for ProgramDiffCommand
impl SubCommand for ProgramDiffCommand
Source§const COMMAND: &'static CommandInfo
const COMMAND: &'static CommandInfo
Information about the subcommand.
Auto Trait Implementations§
impl Forget for ProgramDiffCommand
impl Freeze for ProgramDiffCommand
impl Move for ProgramDiffCommand
impl RefUnwindSafe for ProgramDiffCommand
impl Send for ProgramDiffCommandwhere
RawVecInner: Send,
impl Sync for ProgramDiffCommandwhere
RawVecInner: Sync,
impl Unpin for ProgramDiffCommand
impl UnsafeUnpin for ProgramDiffCommand
impl UnwindSafe for ProgramDiffCommandwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SubCommands for Twhere
T: SubCommand,
impl<T> SubCommands for Twhere
T: SubCommand,
Source§const COMMANDS: &'static [&'static CommandInfo<'static>]
const COMMANDS: &'static [&'static CommandInfo<'static>]
Info for the commands.
Source§fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]
Get a list of commands that are discovered at runtime.