Skip to main content

Command

Enum Command 

Source
pub enum Command {
Show 24 variants Register(RegisterArgs), Repos(ReposArgs), Resolve(ResolveArgs), Session { command: SessionCommand, }, Publish(PublishArgs), PublishBranch(PublishBranchArgs), Change { command: ChangeCommand, }, Preserve(PreserveArgs), Recover(RecoverArgs), Recoverable(RecoverableArgs), Status(StatusArgs), Import(ImportArgs), Integrate(IntegrateArgs), Sync(SyncArgs), Sweep(SweepArgs), Events(EventsArgs), Artifact { command: ArtifactCommand, }, Rules { command: RulesCommand, }, Release { command: ReleaseCommand, }, Pool { command: PoolCommand, }, Retire(RetireArgs), Reclaim(ReclaimArgs), RetireFinished(RetireFinishedArgs), Supersede(SupersedeArgs),
}
Expand description

The top-level commands.

Variants§

§

Register(RegisterArgs)

Register a checkout, resolving its origin to a repository identity.

§

Repos(ReposArgs)

List the registered repositories.

§

Resolve(ResolveArgs)

Resolve a repository to its identity.

§

Session

Open, adopt, or close a session.

Fields

§command: SessionCommand

Which part of a session’s life cycle.

§

Publish(PublishArgs)

Verify a session’s work and publish it under its policy.

§

PublishBranch(PublishBranchArgs)

Verify and publish a completed branch no session holds.

§

Change

Read, describe, or ready a session’s own change request.

Fields

§command: ChangeCommand

Which thing to do to the change request.

§

Preserve(PreserveArgs)

Put an unpublished branch on its identity’s origin, without publishing it.

§

Recover(RecoverArgs)

Verify and publish a preserved branch that was left behind.

§

Recoverable(RecoverableArgs)

List preserved work that has not been published.

§

Status(StatusArgs)

Report everything onevcs knows about one piece of work.

§

Import(ImportArgs)

Make a branch reachable from an identity’s registered checkouts.

§

Integrate(IntegrateArgs)

Merge finished branches into their base, in order.

§

Sync(SyncArgs)

Fast-forward a publication checkout to its origin.

§

Sweep(SweepArgs)

Reclaim the publication workspaces this host has finished with.

§

Events(EventsArgs)

Read a session’s event stream.

§

Artifact

Work with stored artifacts.

Fields

§command: ArtifactCommand

What to do with an artifact.

§

Rules

Work with the rules file.

Fields

§command: RulesCommand

What to do with the rules.

§

Release

Ask about the releases that follow a landed change.

Fields

§command: ReleaseCommand

Which release question.

§

Pool

Report, prune or maintain a repository’s pool of warm worktree slots.

Fields

§command: PoolCommand

Which pool question.

§

Retire(RetireArgs)

Delete a branch everywhere this host holds it, where it provably holds no work beyond its base.

§

Reclaim(ReclaimArgs)

Delete a branch a retry superseded and landed, discarding what it still differs from the base in.

With --discard, also a branch kept on purpose whose work nothing will land.

§

RetireFinished(RetireFinishedArgs)

Retire every branch in scope that provably holds no work beyond its base.

§

Supersede(SupersedeArgs)

Record that a branch was superseded by a retry that landed.

Trait Implementations§

Source§

impl Clone for Command

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 Command

Source§

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

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

impl Eq for Command

Source§

impl FromArgMatches for Command

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 PartialEq for Command

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 Command

Source§

impl Subcommand for Command

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§

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

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