Skip to main content

FixCommand

Struct FixCommand 

Source
pub struct FixCommand {
Show 18 fields pub apply: bool, pub dry_run: bool, pub include_attached: bool, pub format: String, pub ns: Option<String>, pub definition: Option<String>, pub rule: Option<String>, pub preset: Option<String>, pub pattern: Option<String>, pub replacement: Option<String>, pub workflow: Option<String>, pub verify: bool, pub summary_only: bool, pub replacement_name: Option<String>, pub at: Option<String>, pub expect_revision: Option<String>, pub allow_dirty: bool, pub allow_no_vcs: bool,
}
Expand description

preview or apply compiler-guided migrations or reviewed structural source rewrites

Fields§

§apply: bool

write applicable fixes atomically after validation

§dry_run: bool

explicitly request preview mode; preview is also the default

§include_attached: bool

include definition tests and examples in supported migration rules

§format: String

output format: human (default), edn (primary structured data), or json (interoperability)

§ns: Option<String>

restrict fixes to one exact project namespace

§definition: Option<String>

restrict fixes to one definition; requires –ns

§rule: Option<String>

restrict fixes to one stable rule ID

§preset: Option<String>

select surface-latest-v1, surface-latest-v2, core-api-0.28-v1, or core-api-0.29-v1 migration rules

§pattern: Option<String>

match one exact Cirru source pattern with ?name subtree variables (reviewed syntax only)

§replacement: Option<String>

replacement Cirru template for –pattern; does not prove semantic equivalence

§workflow: Option<String>

compose a project workflow; currently supports strict

§verify: bool

verify a selected project workflow without mutating the snapshot

§summary_only: bool

show strict verification status and failure locations without the full migration report

§replacement_name: Option<String>

replacement name required by rename-definition-v1 and rename-local-v1

§at: Option<String>

path of the local binding name for rename-local-v1, such as 3.1.0.0

§expect_revision: Option<String>

require the snapshot content to match this revision before applying

§allow_dirty: bool

allow applying while the Git working tree contains changes

§allow_no_vcs: bool

allow applying when the project is not inside a Git worktree

Trait Implementations§

Source§

impl Clone for FixCommand

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FixCommand

Source§

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

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

impl FromArgs for FixCommand

Source§

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>

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 FixCommand

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FixCommand

Source§

impl SubCommand for FixCommand

Source§

const COMMAND: &'static CommandInfo

Information about the subcommand.

Auto Trait Implementations§

§

impl Forget for FixCommand

§

impl Freeze for FixCommand
where *const u8 is !null: Freeze, PhantomData<u8>: Freeze,

§

impl Move for FixCommand

§

impl RefUnwindSafe for FixCommand

§

impl Send for FixCommand
where RawVecInner: Send,

§

impl Sync for FixCommand
where RawVecInner: Sync,

§

impl Unpin for FixCommand
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for FixCommand

§

impl UnwindSafe for FixCommand
where RawVecInner: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynEq for T
where T: PartialEq + Debug + 'static,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn do_eq(&self, rhs: &dyn DynEq) -> bool

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SubCommands for T
where T: SubCommand,

Source§

const COMMANDS: &'static [&'static CommandInfo<'static>]

Info for the commands.
Source§

fn dynamic_commands() -> &'static [&'static CommandInfo<'static>]

Get a list of commands that are discovered at runtime.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.