Skip to main content

Module installer

Module installer 

Source
Expand description

Core installation traits and logic

Defines the Installer trait and common installation utilities.

Structs§

GitHubAsset
GitHub release asset
GitHubRelease
GitHub release information
InstallOptions
Options for installation
InstallResult
Result of an installation

Enums§

InstallMethod
Installation method for a debugger
InstallStatus
Installation status of a debugger
PackageManager
Package managers

Traits§

Installer
Trait for debugger installers

Functions§

adapters_dir
Get the adapters installation directory
arch_str
Get current architecture string for asset matching
download_file
Download a file with progress reporting
ensure_adapters_dir
Ensure the adapters directory exists
extract_tar_gz
Extract a tar.gz archive
extract_tar_xz
Extract a tar.xz archive
extract_zip
Extract a zip archive
get_github_release
Query GitHub API for latest release with retry logic
make_executable
Make a file executable on Unix
platform_str
Get current platform string for asset matching
read_version_file
Read version from a version file
run_command
Run a shell command and return output Note: This should only be used for trusted commands. For user input, use run_command_args.
run_command_args
Run a command with explicit arguments (safe from shell injection)
write_version_file
Write version info to a file