Crate flowey_lib_common

Source
Expand description

A “standard library” of flowey nodes, not tied to any particular project.

These nodes can be considered “building blocks” that project-specific flows can leverage to quickly get up and running.

Modules§

_util
ado_task_azure_key_vault
ADO Task Wrapper: AzureKeyVault@2
ado_task_npm_authenticate
ADO Task Wrapper: npmAuthenticate@0
ado_task_nuget_authenticate
ADO Task Wrapper: NuGetAuthenticate@1
ado_task_nuget_tool_installer
ADO Task Wrapper: NuGetToolInstaller@1
ado_task_publish_test_results
ADO Task Wrapper: PublishTestResults@2
cache
Cache the contents of a particular directory between runs.
cfg_cargo_common_flags
Centralized configuration for setting “global” cargo command flags, such as --locked, --verbose, etc…
cfg_persistent_dir_cargo_install
A node which returns a PathBuf to a single shared persistent-dir that can be used by any nodes invoking cargo install in order to share a single cargo build cache.
check_needs_relaunch
Check if shell must be relaunched to refresh environment variables
copy_to_artifact_dir
Helper to streamline copying an ad-hoc set of files into an artifact directory.
download_azcopy
Download a copy of azcopy
download_cargo_fuzz
Download (and optionally, install) a copy of cargo-fuzz.
download_cargo_nextest
Download (and optionally, install) a copy of cargo-nextest.
download_gh_artifact
Download a github release artifact
download_gh_cli
Download a copy of the GitHub CLI.
download_gh_release
Download a github release artifact
download_mdbook
Download a copy of mdbook
download_mdbook_admonish
Download a copy of mdbook-admonish
download_mdbook_mermaid
Download a copy of mdbook-mermaid
download_nuget_exe
Download nuget.exe
download_protoc
Download a copy of protoc for the current platform
gh_download_azure_key_vault_secret
Downloads secrets from Azure Key Vault using the Azure CLI.
gh_task_azure_login
Github Actions Task Wrapper: Azure/login@v2
gh_workflow_id
Gets the Github workflow id for a given commit hash
git_checkout
Checkout git repos
git_merge_commit
Gets the merge commit of a PR to base branch
install_azure_cli
Globally install the Azure CLI (az)
install_dist_pkg
Globally install a package via apt on DEB-based Linux systems, or dnf on RPM-based ones.
install_git
Globally install git and ensure it is available on the user’s $PATH
install_nodejs
Globally install nodejs
install_nuget_azure_credential_provider
Globally install the azure credential provider nuget plugin
install_rust
Globally install a Rust toolchain, and ensure those tools are available on the user’s $PATH
nuget_install_package
Install a nuget package
publish_test_results
Publish test results.
run_cargo_build
Encapsulates the logic of both invoking cargo build, and tracking where built artifacts are emitted (which varies depending on the crate’s type and platform).
run_cargo_clippy
Clippy
run_cargo_doc
Encapsulates the logic of invoking cargo doc, taking into account bits of “global” configuration and dependency management, such as setting global cargo flags (e.g: –verbose, –locked), ensuring base Rust dependencies are installed, etc…
run_cargo_nextest_archive
Build and archive cargo-nextest tests (for cross-job execution).
run_cargo_nextest_run
Run cargo-nextest tests.
use_gh_cli
Set up gh CLI for use with flowey.