pub struct RepoArgs {
pub repo: Option<PathBuf>,
pub discovery: DiscoveryMode,
pub strict: bool,
pub share: Option<PathBuf>,
}Expand description
Where and how the repository is read; shared by every command that reads it.
Fields§
§repo: Option<PathBuf>Start the search for the repository root here (default: the current directory)
discovery: DiscoveryModeHow declarative files are enumerated
strict: boolRefuse to proceed when any file of the layer carries an error diagnostic
The tool distribution’s share directory (kinds.yaml, schemas/); default: $MAJORDOMUS_SHARE, then the repository’s own share/, then the one beside the executable
Trait Implementations§
Source§impl Args for RepoArgs
impl Args for RepoArgs
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to [
Command] so it can instantiate self via
[FromArgMatches::update_from_arg_matches_mut] Read moreSource§impl FromArgMatches for RepoArgs
impl FromArgMatches for RepoArgs
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>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for RepoArgs
impl RefUnwindSafe for RepoArgs
impl Send for RepoArgs
impl Sync for RepoArgs
impl Unpin for RepoArgs
impl UnsafeUnpin for RepoArgs
impl UnwindSafe for RepoArgs
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
Mutably borrows from an owned value. Read more