Crate system_env
source ·Structs
- Configuration for one or many system dependencies (packages).
- Configuration for a specific package manager vendor. The fields define commands and arguments for common operations.
- Represents the current system, including architecture, operating system, and package manager information.
Enums
- The types of commands that are currently supported by package managers.
- A system dependency name in multiple formats.
- The CLI argument format for enabling interactive mode.
- Architecture of the host environment.
- Represents a system dependency (one or many packages) to install.
- Operating system of the host environment.
- Package manager of the host environment.
- The CLI argument format for including the package version to install.
Functions
- Create a new process
Command
and append the provided arguments. If the provided binary name is not an absolute path, we’ll attempt to find it onPATH
usingfind_command_on_path
. - Return an absolute path to the provided program (without extension) by checking
PATH
and cycling throughPATHEXT
extensions. - Return true if the provided command/program (without extension) is available on
PATH
.