11 releases (5 breaking)
|0.6.1||Sep 4, 2023|
|0.6.0||Sep 3, 2023|
|0.5.0||Sep 3, 2023|
|0.4.1||May 29, 2023|
|0.1.2||May 19, 2023|
#112 in Configuration
106 downloads per month
Utility software to define scripts repositories and run contained scripts.
.run-that will be searched and parsed from the root to the current working directory, they need to be TOML files with the following structure.
If multiple files are found and the same key are defined in different files, the files nearest to the current working directory overrides the others.
[buckets.bash-utils] priority = 100 # Optional source.type = "Git" source.url = "email@example.com:bash/bash-utils.git" source.reference = "1234567" [buckets.bash-override] priority = 200 # Optional source.type = "Git" source.url = "https://gitlab.com/bash/bash-override.git" source.reference = "7654321"
You can run a script by specifying its name inside the repo, and passing the required args.
run-that run -s simple_script.sh -- some args
Run-that will checkout the repository revision in the cache directory (if not already done) and call the specified script.
If multiple scripts with the same name are found in different repositories the one with highest priority will be executed -- if multiple repos have the highest priority the execution will fail.