View on GitHub

HomeSetup

HomeSetup simplifies terminal customization by offering seamless cloud integration for dotfiles, packages, and configurations, enhancing productivity and command line experiences without complex frameworks.

Download this project as a .zip file Download this project as a tar.gz file

HomeSetup Developer Handbook

Standard-Tools

Table of contents

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
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
Examples

__hhs_toml_set bumpver.toml current_version=1.6.20

Output

current_version=1.6.19