[][src]Struct polyhorn_cli::core::tasks::Dependency

pub struct Dependency {
    pub name: String,
    pub check: DependencyCheck,
    pub install_command: Vec<String>,
}

Dependency that must be installed.

Fields

name: String

Name of this dependency that will be shown to the user.

check: DependencyCheck

Check that will be used to determine if this dependency is installed.

install_command: Vec<String>

Command that will be executed to install this dependency if necessary.

Implementations

impl Dependency[src]

pub fn cli(
    name: &str,
    check_command: &[&str],
    install_command: &[&str]
) -> Dependency
[src]

Returns a new dependency on a CLI with the given commands to check its existence and install it if necessary, respectively.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,