[][src]Enum hygeia::commands::Command

pub enum Command {
    List,
    Path {
        version: Option<String>,
    },
    Version {
        version: Option<String>,
    },
    Select(VersionOrPath),
    Install {
        from_version: Option<String>,
        release: bool,
        force: bool,
        select: bool,
        install_extra_packages: InstallExtraPackagesOptions,
    },
    Run {
        version: Option<String>,
        command: String,
    },
    Setup {
        shell: Shell,
    },
    Update,
}

Variants

List

List installed Python versions

Path

Get path to active interpreter

For example: hygeia path /usr/local/bin

Fields of Path

version: Option<String>

Use specified interpreter version

Version

Get version of active interpreter

For example: hygeia version 3.7.2

Fields of Version

version: Option<String>

Use specified interpreter version

Select specified Python versions to use

The specified Python version will not be installed if not already installed. Use 'hygeia install' for this.

For example: hygeia select 3.6 will select ~3.6 (the most up to date version of the 3.6 series).

hygeia select =3.7.2 will select an exact version.

Install

Install version, either from the provided version or from '.python-version'

Fields of Install

from_version: Option<String>

Specified version to install

release: bool

Build toolchain in release mode, with optimizations (slower)

force: bool

Force installation, even if already installed

select: bool

Write installed version to '.python-version'

install_extra_packages: InstallExtraPackagesOptions
Run

Run a binary from the installed '.python-version'

For example: hygeia run "python -v" hygeia run "python -c "print('string with spaces')""

Fields of Run

version: Option<String>

Use specified interpreter version

command: String
Setup

Setup the shim

This will install pycor's binary to '~/.hygeia/bin' and add the directory to the '$PATH' environment variable (through '~/.profile').

Supported shells: Bash, Fish, Zsh, PowerShell and Elvish.

Fields of Setup

shell: Shell
Update

Update pycors to latest version

Trait Implementations

impl Debug for Command[src]

impl StructOpt for Command[src]

impl StructOptInternal for Command[src]

Auto Trait Implementations

impl RefUnwindSafe for Command

impl Send for Command

impl Sync for Command

impl Unpin for Command

impl UnwindSafe for Command

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, U> Into<U> for T where
    U: From<T>, 
[src]

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>,