Bake: A Bash-based Make alternative
Bake is a dead-simple task runner used to quickly cobble together shell scripts
In a few words, Bake lets you call the following 'print' task with './bake print'
#!/usr/bin/env bash
task.print() {
printf '%s\n' 'Contrived example'
}
Learn more about it on GitHub
Prints $1
formatted as an error and the stacktrace to standard error,
then exits with code 1
- $1 (string): Text to print
Prints $1
formatted as a warning to standard error
- $1 (string): Text to print
Prints $1
formatted as information to standard output
- $1 (string): Text to print
Dies if any of the supplied variables are empty
- ... (string): Names of variables to check for emptiness
Dies if a command cannot be found
- $1 (string): Command name to test for existence
Determine if a flag was passed as an argument
- $1 (string): Flag name to test for
- ... (string): Rest of the arguments to search through