pub enum Command {
Show 21 variants
Init {
force: bool,
},
Import {
mode: ImportModeArg,
source: Option<String>,
force: bool,
},
AdoptOverlay {
overlay_record: PathBuf,
force: bool,
},
Validate,
ValidateIndex {
index_root: PathBuf,
},
PromotionReport {
index_root: PathBuf,
apply: bool,
limit: Option<usize>,
json: bool,
verbose: bool,
},
Query {
path: String,
json: bool,
raw: bool,
},
Generate {
check: bool,
},
Doctor {
json: bool,
},
Manage {
surface: PreviewSurfaceArg,
adopt: bool,
},
Preview {
surface: Option<PreviewSurfaceArg>,
all: bool,
json: bool,
},
Trust {
json: bool,
},
AdoptionStatus {
json: bool,
},
Ci {
command: CiCommand,
},
Claim {
path: PathBuf,
json: bool,
},
ClaimInit {
host: String,
owner: String,
repo: String,
claim_id: String,
claimant_name: String,
asserted_role: String,
contact: Option<String>,
record_sources: Vec<String>,
canonical_repo_url: Option<String>,
review_md: bool,
force: bool,
},
ClaimFromNative {
index_root: PathBuf,
claim_id: String,
claimant_name: String,
asserted_role: String,
contact: Option<String>,
review_md: bool,
force: bool,
},
ClaimEvent {
path: PathBuf,
kind: ClaimEventKindArg,
actor: String,
summary: String,
corrected_state: Option<CorrectedClaimStateArg>,
canonical_record_path: Option<String>,
canonical_mirror_path: Option<String>,
},
ClaimSubmitNative {
index_root: PathBuf,
claim_id: String,
actor: String,
summary: String,
},
ClaimAcceptNative {
index_root: PathBuf,
path: Option<PathBuf>,
claim_id: Option<String>,
actor: String,
summary: String,
},
Public {
command: PublicCommand,
},
}Variants§
Init
Initialize a canonical root .repo scaffold.
Import
Import conventional repository surfaces into a dotrepo record.
Fields
mode: ImportModeArgRecord mode for the imported manifest.
AdoptOverlay
Bootstrap a native .repo from an existing public overlay record.
Fields
Validate
Validate only the root .repo or root record.toml.
ValidateIndex
Validate a public index tree rooted at index/.
PromotionReport
Analyze index records for promotion eligibility to verified status.
Fields
Query
Query one field from the selected record, preserving trust-aware selection in --json.
Fields
Generate
Render generated compatibility surfaces or fail when they drift.
Doctor
Inspect unmanaged conventional files at the repository root.
Manage
Adopt one supported Markdown surface into managed-region sync.
Fields
surface: PreviewSurfaceArgConventional surface to manage.
Preview
Preview how dotrepo would render or replace one managed surface.
Fields
surface: Option<PreviewSurfaceArg>Conventional surface to preview.
Trust
Inspect trust, authority handoff, and competing records for one repository identity.
AdoptionStatus
Summarize native adoption readiness for the current repository.
Ci
Scaffold CI for the canonical native-repo maintainer loop.
Claim
Inspect one maintainer-claim directory from the index.
Fields
ClaimInit
Scaffold a draft maintainer-claim directory for one index repository.
Fields
ClaimFromNative
Scaffold a maintainer claim from the current native .repo.
Fields
ClaimEvent
Append a new claim event and update the current claim state.
Fields
kind: ClaimEventKindArgEvent kind to append.
corrected_state: Option<CorrectedClaimStateArg>Optional corrected current state when kind=corrected.
ClaimSubmitNative
Append a submitted claim event with the claim path derived from the current native .repo.
Fields
ClaimAcceptNative
Append an accepted claim event with canonical links from the current native .repo.
Fields
Public
Inspect or export public read-only index responses.
Fields
command: PublicCommandTrait Implementations§
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.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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more