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: SessionCommandWhich 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: ChangeCommandWhich 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: ArtifactCommandWhat to do with an artifact.
Rules
Work with the rules file.
Fields
command: RulesCommandWhat to do with the rules.
Release
Ask about the releases that follow a landed change.
Fields
command: ReleaseCommandWhich release question.
Pool
Report, prune or maintain a repository’s pool of warm worktree slots.
Fields
command: PoolCommandWhich 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§
impl Eq for Command
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.impl StructuralPartialEq for Command
Source§impl Subcommand for Command
impl Subcommand for Command
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.