Crate system_env

Source

Structs§

DependencyConfig
Configuration for one or many system dependencies (packages).
ListParser
PackageManagerConfig
Configuration for a specific package manager vendor. The fields define commands and arguments for common operations.
System
Represents the current system, including architecture, operating system, and package manager information.

Enums§

CommandType
The types of commands that are currently supported by package managers.
DependencyName
A system dependency name in multiple formats.
Error
PromptArgument
The CLI argument format for enabling interactive mode.
SystemArch
Architecture of the system environment.
SystemDependency
Represents a system dependency (one or many packages) to install.
SystemLibc
Libc being used in the system environment.
SystemOS
Operating system of the current environment.
SystemPackageManager
Package manager of the system environment.
VersionArgument
The CLI argument format for including the package version to install.

Functions§

create_process_command
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 on PATH using find_command_on_path.
find_command_on_path
Return an absolute path to the provided command by checking PATH.
is_command_on_path
Return true if the provided command/program (without extension) is available on PATH.