Skip to main content

up

Parameters

List of operations needed to set up or tear down a repository.

Each entry in the list can either be a single string (loads the operation with default parameters), or a map where the key is the type of operation and the value parameters to pass to the operation. These are the available operations:

OperationTypeDescription
andandRun multiple operations in sequence
anyanyRun the first operation that succeeds and skip the rest, while considering configured preferred tools
aptaptInstall packages with apt for ubuntu and debian-based systems
bashbashInstall bash
bundlerbundlerInstall dependencies with bundler
customcustomA custom, user-defined operation
dnfdnfInstall packages with dnf for fedora-based systems
github-releasegithub-releaseInstall a tool from a GitHub release
gogoInstall go
homebrewHomebrewInstall formulae and casks with homebrew
nixnixInstall packages with nix
nodenodeInstall node
ororRun the first available operation that succeeds and skip the rest
pacmanpacmanInstall packages with pacman for arch-based systems
pythonpythonInstall python
rubyrubyInstall ruby
rustrustInstall rust

Example

up:
- rust
- go: latest
- homebrew:
tap:
- xaf/omni
install:
- omni
- custom:
meet: echo "Installing something"
unmeet: echo "Uninstalling something"
met?: |
if [[ $((RANDOM % 2)) == 0 ]]; then
echo "Already installed"
true
else
echo "Not installed"
false
fi