Input passed to the build_instructions function.
Output returned by the build_instructions function.
Input passed to the create_shims function.
Output returned by the create_shims function.
Configuration for one or many system dependencies (packages).
Output returned by the detect_version_files function.
Input passed to the download_prebuilt function.
Output returned by the download_prebuilt function.
Represents an empty input.
Input passed to the exec_command host function.
Output returned from the exec_command host function.
Configuration for generated shim and symlinked binary files.
Information about the host environment (the current runtime).
Input passed to the install_global function.
Output returned by the install_global function.
Input passed to the pre_install and post_install hooks,
while a proto install command is running.
Input passed to the load_versions function.
Output returned by the load_versions function.
Input passed to the locate_bins function.
Output returned by the locate_bins function.
Input passed to the locate_executables function.
Output returned by the locate_executables function.
Input passed to the native_install function.
Output returned by the native_install function.
Input passed to the native_uninstall function.
Output returned by the native_uninstall function.
Input passed to the parse_version_file function.
Output returned by the parse_version_file function.
Input passed to the resolve_version function.
Output returned by the resolve_version function.
Input passed to the pre_run hook, before a proto run command
or language binary is ran.
Configuration for individual shim files.
Input passed to the sync_manifest function.
Output returned by the sync_manifest function.
Input passed to the sync_shell_profile function.
Output returned by the sync_shell_profile function.
Information about the current state of the tool.
Controls aspects of the tool inventory.
Input passed to the register_tool function.
Output returned by the register_tool function.
Input passed to the uninstall_global function.
Output returned by the uninstall_global function.
Input passed to the unpack_archive function.
Output returned by the verify_checksum function.
Output returned by the verify_checksum function.
SemVer version requirement describing the intersection of some version
comparators, such as >=1.2.3, <1.8.
Validate the current host OS and architecture against the
supported list of target permutations.
Cleans a potential version string by removing a leading v or V,
removing each occurence of .*, and removing invalid spaces.
Check whether a command exists or not on the host machine.
Fetch the provided request and return a response object.
Fetch the provided URL and deserialize the response as JSON.
Fetch the provided URL and return the text response.
Fetch the provided URL, deserialize the response as JSON,
and cache the response in memory for subsequent WASM function calls.
Return the name of the binary for the provided name and OS.
On Windows, will append “.exe”, and keep as-is on other OS’s.
Return information about proto and the host environment.
Return the loaded proto user configuration (~/.proto/.prototools). Does not include plugins!
Return a Rust target triple for the current host OS and architecture.
Get tool configuration for the current WASM plugin that was configured in a .prototools file.
Get the tool ID for the current WASM plugin.
Returns true if the provided value is an alias. An alias is a word that
maps to version, for example, “latest” -> “1.2.3”.
Detect whether the current OS is utilizing musl instead of gnu.
Load all git tags from the provided remote URL.
The git binary must exist on the current machine.