Skip to main content

Cmd

Enum Cmd 

Source
pub enum Cmd {
Show 20 variants Locate { units: bool, graph: bool, sdd: Option<String>, json: bool, }, Readset { unit: String, sdd: Option<String>, json: bool, budget: Option<Option<i64>>, }, Claim(ClaimArgs), Renew(ClaimArgs), Release(ClaimArgs), Trace { mode: TraceMode, }, Ledger { mode: LedgerMode, }, Journal { mode: JournalMode, }, Audit { json: bool, fix_leases: bool, apply_stale: bool, skip_rotten: bool, journal: bool, sdd: Option<String>, all: bool, }, Brief { phase: Option<BriefPhase>, unit: Option<String>, holder: Option<String>, sdd: Option<String>, }, Init { json: bool, }, Probe { json: bool, assume_yes: bool, }, Run { dry_run: bool, cap: Option<i64>, gate_jobs: Option<i64>, wait: bool, recheck: bool, upstream: bool, sdd: Option<String>, mainline: Option<String>, sub: Option<RunSub>, }, Lint { sdd: Option<String>, all: bool, built: bool, json: bool, }, Check { sdd: Option<String>, all: bool, skip_rotten: bool, json: bool, }, Change { mode: ChangeMode, }, Pin { mode: PinMode, }, Questions { sdd: Option<String>, all: bool, open: bool, json: bool, }, New { kind: NewKind, bundle: bool, single: bool, name: Option<String>, }, Schema { mode: SchemaMode, },
}

Variants§

§

Locate

Find SDD instances; list units and claimability; show the SDD graph

Fields

§units: bool

List units of one SDD with the computed claimable flag

§graph: bool

Show the SDD graph the units’ depends_on edges imply, with the pins and unit edges behind each SDD edge

§sdd: Option<String>

SDD root: a bundle directory, its sdd.md, or a single *.sdd.md (default: every SDD; with –units, the one SDD in the repository)

§json: bool

Print JSON on stdout instead of text

§

Readset

Print the ordered minimal reading set for one unit

Fields

§unit: String

Unit ID, e.g. U-012

§sdd: Option<String>

SDD root: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§json: bool

Print JSON on stdout instead of text

§budget: Option<Option<i64>>

Total bytes and fail over budget (default: lint.readset_budget_bytes)

§

Claim(ClaimArgs)

Claim a unit lease (atomic mainline transaction)

§

Renew(ClaimArgs)

Renew a held lease

§

Release(ClaimArgs)

Release a held lease

§

Trace

Record or verify a unit’s input-trace hashes

Fields

§

Ledger

Regenerate the derived ledger or print the progress line

Fields

§

Journal

Append journal events; replay and verify the journal

Fields

§

Audit

The mechanical drift audit (seven checks)

Fields

§json: bool

Print JSON on stdout instead of text

§fix_leases: bool

Return lapsed Claimed units to Ready (release event, actor audit)

§apply_stale: bool

Write Stale marks for check 4–5 findings

§skip_rotten: bool

Skip re-running Verified units’ Verification tables

§journal: bool

Append one audit journal event

§sdd: Option<String>

SDD root: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§all: bool

Audit every SDD of the repository

§

Brief

Print the procedure index, or the operative procedure for a task

Fields

§phase: Option<BriefPhase>

The procedure to print (none: the index)

§unit: Option<String>

Unit ID (build-unit worker-prompt generation)

§holder: Option<String>

Holder identity (build-unit worker-prompt generation)

§sdd: Option<String>

SDD root for the worker prompt: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§

Init

Set this machine up: ~/.vitrify/config.toml with every default, then a first probe

Fields

§json: bool

Print JSON on stdout instead of text

§

Probe

Probe git and the harness CLIs again; update ~/.vitrify/config.toml after asking

Fields

§json: bool

Print JSON on stdout instead of text

§assume_yes: bool

Apply the changes without asking

§

Run

The deterministic orchestrator: run a complete generation pass

Fields

§dry_run: bool

Print preflight results and the plan, then stop

§cap: Option<i64>

Override run.worker_cap: workers at once

§gate_jobs: Option<i64>

Override run.gate_jobs: Verification rows run at once (default 0 = one per CPU core; 1 = one at a time)

§wait: bool

When only blocked units remain, keep running and resume when the spec changes, instead of ending Blocked

§recheck: bool

Trust no recorded check: run every Verified unit’s rows and the §5 Test command again (rebuilds nothing; built attempts are still adopted)

§upstream: bool

With –sdd: build the SDDs it depends on too, each a lane of one project run

§sdd: Option<String>

SDD root to build: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§mainline: Option<String>

Mainline branch the run publishes to (default: config mainline, else the primary checkout’s branch, else origin/HEAD)

§

Lint

Mechanical authoring checks (L1–L12)

Fields

§sdd: Option<String>

SDD root: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§all: bool

Lint every SDD of the repository

§built: bool

The SDD is being built, or has been: leave out L7 (state that must not exist before the build) — what run preflights with

§json: bool

Print JSON on stdout instead of text

§

Check

Every consistency check vitrify has, over one SDD or all of them

Fields

§sdd: Option<String>

SDD root: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§all: bool

Check every SDD of the repository

§skip_rotten: bool

Skip re-running Verified units’ Verification tables (audit check 4)

§json: bool

Print JSON on stdout instead of text

§

Change

Record a change entry’s bookkeeping: journal events, Stale marks or re-recorded traces, the ledger

Fields

§

Pin

External contracts: one SDD’s pins on another’s contracts, and its transcriptions

Fields

§mode: PinMode
§

Questions

List the open questions (Q-###) and the units they block

Fields

§sdd: Option<String>

SDD root: a bundle directory, its sdd.md, or a single *.sdd.md (default: the one SDD in the repository)

§all: bool

Every SDD of the repository

§open: bool

Only the questions not marked resolved

§json: bool

Print JSON on stdout instead of text

§

New

Materialize instance templates into the current directory

Fields

§kind: NewKind

The document to materialize

§bundle: bool

Bundle shape (SDD only; default)

§single: bool

Single-file shape (SDD only)

§name: Option<String>

Instance name (slug)

§

Schema

Print the embedded normative schema documents

Fields

Trait Implementations§

Source§

impl FromArgMatches for Cmd

Source§

fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>

Instantiate Self from ArgMatches, parsing the arguments as needed. Read more
Source§

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<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>

Assign values from ArgMatches to self.
Source§

impl Subcommand for Cmd

Source§

fn augment_subcommands<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate Self via FromArgMatches::from_arg_matches_mut Read more
Source§

fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command

Append to Command so it can instantiate self via FromArgMatches::update_from_arg_matches_mut Read more
Source§

fn has_subcommand(__clap_name: &str) -> bool

Test whether Self can parse a specific subcommand

Auto Trait Implementations§

§

impl Forget for Cmd

§

impl Freeze for Cmd

§

impl Move for Cmd

§

impl RefUnwindSafe for Cmd

§

impl Send for Cmd

§

impl Sync for Cmd

§

impl Unpin for Cmd

§

impl UnsafeUnpin for Cmd

§

impl UnwindSafe for Cmd

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

Source§

type Output = T

Should always be Self
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.