
HomeSetup Developer Handbook¶
Standard-Tools
Table of contents¶
- Standard Tools
- Aliases Related
- Built-ins
- CLI Terminal Tools
- Command Tool
- Directory Related
- File Related
- Network Related
- Paths Tool
- Profile Related
- Search Related
- Security Related
- Shell Utilities
- System Utilities
- Taylor Tool
- Text Utilities
- TOML Utilities
- Toolchecks
- Development Tools
- Gradle
- Docker
- Git
TOML Utilities¶
__hhs_toml_get¶
usage: __hhs_toml_get <file> <key> [group]
Purpose¶
Get the key's value from a toml file.
Returns¶
0 on success; non-zero otherwise.
Parameters¶
- $1 Required : The toml file read from.
- $2 Required : The key to get.
- $3 Optional : The group to get the key from (root if not provided).
Examples¶
__hhs_toml_get bumpver.toml current_version
Output
current_version=1.6.19
__hhs_toml_set¶
usage: __hhs_toml_set <file> <key=value> [group]
Purpose¶
Set the key's value from a toml file.
Returns¶
0 on success; non-zero otherwise.
Parameters¶
- $1 Required : The toml file read from.
- $2 Required : The key to set on the form: key=value
- $3 Optional : The group to get the key from (root if not provided).
Examples¶
__hhs_toml_set bumpver.toml current_version=1.6.20
Output
current_version=1.6.19