pub enum CliDomainRequirements {
CdInLocalRepo,
DomainArgs,
RepoArgs,
}
Expand description
Given a CLI command, the command can work as long as user is in a cd repository, user passes –domain flag (DomainArgs) or –repo flag (RepoArgs). Some CLI commands might work with one variant, with both, with all or might have no requirement at all.
Variants§
Implementations§
Source§impl CliDomainRequirements
impl CliDomainRequirements
pub fn check<R: TaskRunner<Response = ShellResponse>>( &self, cli_args: &CliArgs, runner: &R, mr_target_repo: &Option<&str>, ) -> Result<RemoteURL>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CliDomainRequirements
impl RefUnwindSafe for CliDomainRequirements
impl Send for CliDomainRequirements
impl Sync for CliDomainRequirements
impl Unpin for CliDomainRequirements
impl UnwindSafe for CliDomainRequirements
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