gg_one_core 2.17.0
gg_one_core: ^2.17.0 copied to clipboard
Kernel, checks and publish configuration of the gg_one tool family - state caching, command bases, verification steps and gg-publish.json handling.
gg_one_core #
Kernel, checks and publish configuration of the gg_one tool family - state caching, command bases, verification steps and gg-publish.json handling.
Settings #
GgRc reads the settings of gg from two JSON files with the same structure:
the user's ~/.gg_rc ($GG_RC names another file) and a repository's
.gg/gg_rc. The keys follow the command path and end with the flag they
preset:
{
"do": {
"upgrade": { "deps": { "majorVersions": false } }
},
"can": {
"commit": { "checks": false }
}
}
- Precedence: a flag on the command line, then
.gg/gg_rc, then~/.gg_rc, then the built-in default do.upgrade.deps.majorVersionsandcan.commit.checksbelong to one repository (GgRc.repoDefaults, bothtrue): only.gg/gg_rcmay set them, a~/.gg_rcholding one is reported as brokenGgRc.load(ggLog:, repo:)reads~/.gg_rc— written withGgRc.builtInDefaultswhen missing — and, withrepo,.gg/gg_rcon topGgRc.loadRepo(repo, create:)reads.gg/gg_rconly;create: truewrites a missing file withGgRc.repoDefaultsand adds!.gg/gg_rcbelow a.gg/*rule of.gitignore, so it stays trackedflag(keys)answers a setting; invalid JSON or a non-boolean value throws with the file and how to fix itCommandCluster(checksSetting: GgRc.commitChecks)skips its commands and records success when the setting isfalse