Predefined Rutinme Environment (PRE). A way to prepare and make progressive development, such as scaffolding or local deploy, using YAML and linking Bash commands in a blueprint. It is a simple CI/CD tool also (in its foundations) but starts before of that.
Basically, the way to operate consists in a YAML file where you define variables and steps with commands (bash sentences), then you are under your imagination (e.g. you can mix with scripts in javascript or python for more elaborated processes, like Service-Connections)
To use OnMind-PRE, first set a _pre.yml
(or in another folder and name) with the following specification example (is similar to basic aspects of Azure Pipelines):
# Comment or Title
variables:
- name: name
value: there
- name: color
valueFrom: gum choose "Blue" "Green" "Pink" "Red" "White" "Yellow"
steps:
- bash: echo "Hi ${name}"
displayName: Hello
- bash: echo 'Your color is ${color}'
${name}
and${color}
are used to replace varariables by its values.
valueFrom
allow reads bybash
command usinggum
as dependency (like in the example).
To run OnMind-PRE from binaries just check release in this repo and download the file for your system. Then, launch the app like this:
./onmind-pre-mac --config examples/pre_deno.yml
onmind-pre-mac
is the version for macOS, but it could beonmind-pre-win
for Windows, even a version for Linux
--config
is used to specify another path and file name for YAML
Alternatively, to run OnMind-PRE from sources, after clonning, launch the app like this:
deno add jsr:@david/dax
deno run --allow-read --allow-write --allow-env --allow-run main.ts --config examples/pre_deno.yml
You can add the
--config
argument with the path andyml
file with configuration.
To usegum
withvalueFrom
invariables
, install it first, e.g.:go install github.com/charmbracelet/gum@latest