Module environment

Module environment 

Source
Expand description

Environment handlers.

This module contains handlers for various environments. Generally a handler is characterized by the presence of the following public functions within its submodule:

  • detect to find out if this is the current execution environment (where the command wasn’t found)
  • find to see if a certain command exists in this execution environment
  • handle to kick off the chain to look a certain command up from inside this environment
  • execute to und a command in this environment

Especially the latter function isn’t

Modules§

container
distrobox
Distrobox Environment Handler.
host
Host Environment Handler.
toolbx
Toolbx Environment Handler.

Structs§

SerializationError

Enums§

Environment
All the execution environments known to the applicaiton.
Error
ExecutionError
Common errors from command execution.
StartError

Traits§

IsEnvironment
Trait for usable environments.

Functions§

current
Return the current execution environment.
read_env_vars
Preserve the users environments.