YACG(1)
π¦ YACG(1) β yet another configuration generator, bestie β¨
okay so picture this: it's a Perl manual page, it's called yacg, and it's literally the moment your whole config workflow gets its glow-up. welcome to YACG(1), girl. let's go π
β¨ NAME β¨
yacg β Yet Another Configuration Generator. yes that's the whole name. she's humble. she's iconic. π
πΈ SYNOPSIS πΈ
yacg [OPTIONS] PATH
yacg --help|--manual|--version
like, you give her some OPTIONS and a PATH and she goes. or you just ask for help, the manual, or the version β those three are their own whole vibe, no PATH needed π«Ά
π DESCRIPTION π
so here's the tea: yacg reads the high-level configuration file you point her at, carefully validates it, and then generates ready-to-use (configuration) files. careful is the key word β she is not about to let a messy config slide through, no cap π₯
you can mess with that high-level configuration file using the --set, --unset and --merge options. and if you wanna just look at it instead of touching anything? --dump is your girl. π
the generated files can land at their final location (that's the default, main character energy) or somewhere else entirely if you use --rootdir. and if you're feeling cautious, you can tell yacg to just check the files without changing them via --noaction. she'll look, she won't touch. respectful. π§
yacg can also use a "manifest" file to keep track of which files she generated, so that later she can remove the files that she doesn't generate anymore β that's the --manifest and --clean combo, iykyk. ποΈ
and here's the plot twist: yacg by herself does not know how to generate files. nope. she needs the --home option (and optionally the --include option) to be told where to find domain specific modules that actually know how to translate the high-level configuration into individual ready-to-use files. she's the manager, they're the talent. periodt π
π OPTIONS π
--cleanβ removes the files that are present in the old "manifest" file but not in the new one. out with the old, literally π§Ή--debug,-dβ show debugging information. she'll tell you everything bestie π--dumpβ instead of generating files, dump the high-level configuration. and plot twist: this option can be given multiple times:- dump after loading the configuration
- dump after hacking the configuration
- dump after validating the configuration
like a little behind-the-scenes tour at every stage π¬
--dump-format NAMEβ sets the output format for the--dumpoption. possible values:"Config::General"(the default, queen of defaults) and"JSON"β¨--help,-h,-?β show some help π«Ά--home,-H PATHβ set the home directory where the"cfg","lib"and"tpl"sub-directories may be located π--include,-I PATHβ add the given directory to the list of paths that will be looked at to find configuration files,Config::Generatormodules or templates. and yes, this option can be given multiple times β stack 'em π--manifest PATHβ store the list of files thatyacghandled in the given "manifest" file π--manual,-mβ show this manual. hi, you found it π--merge PATH=VALUEβ hack the loaded configuration to merge the given value at the given path π§¬--noaction,-nβ print what would be done but do not actually touch the generated files. all talk, no action, on purpose π--quiet,-qβ set the verbosity level to0. silence. peace. π€«--rndfile PATHβ set the path of the file that will be used as seed to generate random data π²--rootdir PATHβ set the path specifying where the generated files will be put π--set PATH=VALUEβ hack the loaded configuration to set the given value at the given path βοΈ--spec PATHβ store the list of files thatyacghandled in the given "spec" file (same format as rpm's spec%files) π¦--unset PATHβ hack the loaded configuration to unset the given path. gone. deleted. π«₯--verbose,-vβ increase the verbosity level (default:1). more words, more lore π£οΈ--versionβ display version information π·οΈ
π₯ SEE ALSO π₯
Config-Generator. go read it, bestie, it's giving essential lore π
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons>
Copyright (C) CERN 2013-2016
and that's the whole page, bestie π this was perl v5.32.1, dated 2019-07-26, and it was iconic from start to finish. go generate something cute π
π¦ where this page comes from
- epel 9: perl-Config-Generator 1.0-10.el9 Β· GPL+ or Artistic
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms