Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &Z.Cmd{ Name: `config`, Summary: `manage local YAML/JSON configuation`, Version: `v0.4.3`, Copyright: `Copyright 2021 Robert S Muhlestein`, License: `Apache-2.0`, Commands: []*Z.Cmd{help.Cmd, data, _init, edit, _file, query}, Description: ` The *config* Bonzai branch is for safely managing any configuration as single, local YAML/JSON using industry standards for local configuration and persistence to a file using system-wide semaphores for safety. Use it to add a *config* subcommand to any other Bonzai command, or to your root Bonzai tree (*z*). Either way the same single configuration file is used, only the path within the configuration data is affected by the position of the *config* command. Querying configuration data can be easily accomplished with the *query* command that uses the same selection syntax as the *yq* Go utility (the same *yqlib* is used). All changes to configuration values are done via the *edit* command since configurations may be complex and deeply nested in some cases and promoting the automatic changing of configuration values opens the possibility that one buggy composed command might overwrite one or all the configurations for everything everything else composed into the binary. CAUTION: Take particular note that all commands composed into a single binary, no matter where in the tree, will use the same local config file even though the position within the file will be qualified by the tree location. Therefore, any composite command can read the configurations of any other composite command within the same binary. This is by design, but all commands composed together should always be vetted for safe practices. This is also the reason there commands like "config write" or "config set" will never be added. [The *cache* Bonzai branch is recommended when wanting to persist performant local data between command executions.]`, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config helps generically manage configuration data in YAML files (and, by extension JSON, which is a YAML subset) using the gopkg.in/yaml.v3 package (v2 is not compatible with encoding/json creating unexpected marshaling errors).
|
Package config helps generically manage configuration data in YAML files (and, by extension JSON, which is a YAML subset) using the gopkg.in/yaml.v3 package (v2 is not compatible with encoding/json creating unexpected marshaling errors). |
Click to show internal directories.
Click to hide internal directories.