- Execute commands wherever you are. Will automatically detect the closest Runfile.
- Add additional logic to your commands, such as templates and optional executions.
go get -u -v github.com/jberghoef/run
go install -v github.com/jberghoef/run
run # Run the entire Runfile closest the the current directory.
run echo # Run a command named 'echo' in the first Runefile found.
run echo test # Run a command named 'echo' and 'test'.
run --file ../src/Runfile.yaml # Run the entire Runfile provided.
run --file ../src/Runfile.yaml test # Run a command named 'test' in the Runfile provided.
run --debug test # Run a command named 'test', use debug logging.
echo: echo hello world # Execute a command directly.
home: echo ${HOME} # Use existing environment variables.
test: # Execute a list of commands.
- echo halt
- echo and
- echo catch
- echo fire
something:
optional: Would you like to print something? # Mark a command as optional.
commands:
- echo say
- echo {{.Something}} # Use templates to enter values before executing.
- echo loving
anything:
command: echo {{.Something}} # Previously entered values will be remembered.
test2:
env: # Set environment variables before executing.
ENV_VALUE_2: halt and catch fire
ENV_VALUE_3: ✋ 🔥
commands:
- echo ${ENV_VALUE_2}
- echo ${ENV_VALUE_3}
- :echo # Reference an other command in your file.