# Functions
BuildURLFromFormat returns a Bazel download URL based on formatURL.
CreateRepositories creates a new Repositories instance with the given repositories.
GetBazelInstallation provides a mechanism to find the `bazel` binary to execute, as well as its version.
GetBazelVersion returns the Bazel version that should be used.
MakeDefaultConfig returns a config based on env and .bazeliskrc files.
RunBazelisk runs the main Bazelisk logic for the given arguments and Bazel repositories.
RunBazeliskWithArgsFunc runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories.
RunBazeliskWithArgsFuncAndConfig runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config.
RunBazeliskWithArgsFuncAndConfigAndOut runs the main Bazelisk logic for the given ArgsFunc and Bazel repositories and config, writing its stdout to the passed writer.
# Constants
BaseURLEnv is the name of the environment variable that stores the base URL for downloads.
FormatURLEnv is the name of the environment variable that stores the format string to generate URLs for downloads.
# Variables
BazeliskVersion is filled in via x_defs when building a release.
No description provided by the author
No description provided by the author
# Structs
BazelInstallation provides a summary of a single install of `bazel`.
FilterOpts represents options relevant to filtering Bazel versions.
Repositories offers access to different types of Bazel repositories, mainly for finding and downloading the correct version of Bazel.
# Interfaces
CommitRepo represents a repository that stores Bazel binaries built at specific commits.
ForkRepo represents a repository that stores a fork of Bazel (releases).
LTSRepo represents a repository that stores LTS Bazel releases and their candidates.
RollingRepo represents a repository that stores rolling Bazel releases.
# Type aliases
ArgsFunc is a function that receives a resolved Bazel version and returns the arguments to invoke Bazel with.
DownloadFunc downloads a specific Bazel binary to the given location and returns the absolute path.
LTSFilter filters Bazel versions based on specific criteria.