Struct lal::Config [] [src]

pub struct Config {
    pub backend: BackendConfiguration,
    pub cache: String,
    pub environments: BTreeMap<String, Container>,
    pub lastUpgrade: String,
    pub autoupgrade: bool,
    pub mounts: Vec<Mount>,
    pub interactive: bool,
    pub minimum_lal: Option<String>,
}

Representation of ~/.lal/config

Fields

Configuration settings for the Backend

Cache directory for global and stashed builds

Environments shorthands that are allowed and their full meaning

Time of last upgrade

Whether to perform automatic upgrade

Extra volume mounts to be set for the container

Force inteactive shells

Minimum version restriction of lal enforced by this config

Methods

impl Config
[src]

[src]

Initialize a Config with ConfigDefaults

This will locate you homedir, and set last update check 2 days in the past. Thus, with a blank default config, you will always trigger an upgrade check.

[src]

Read and deserialize a Config from ~/.lal/config

[src]

Overwrite ~/.lal/config with serialized data from this struct

[src]

Resolve an arbitrary container shorthand

Trait Implementations

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more