Defaults
The repo can also contain default files defaults.yaml in any folder of the repo.
These files contain defaults which are automatically used in sub directories for empty keys in the dot.yaml files.
You can use template strings {{ name }} to substitute the name of the application (the name of the folder the dot.yaml file is located in). See templating for advanced templating.
- yaml
- toml
- json
Example: defaults.yaml
installs:
cmd: scoop install {{ name }}
depends:
- scoop
- extras
Example: defaults.toml
[installs]
cmd = 'scoop install {{ name }}'
depends = [
'scoop',
'extras',
]
Example: defaults.json
{
"installs": {
"cmd": "scoop install {{ name }}",
"depends": [
"scoop",
"extras"
]
}
}