Config:...or::Hook(3)
Okay bestie, welcome to the Config::Generator::Hook manual π β the terminal header is being extra with its truncated Config:...or::Hook(3) look, and it's part of User Contributed Perl Documentation. Let's get into it.
πΈ NAME πΈ
Config::Generator::Hook β Config::Generator hook support β¨
π DESCRIPTION π
This module makes it easier to manipulate the hooks β aka code references β that are used internally by the yacg command π«Ά
The "check" hooks run (in module dependency order) after the high level configuration has been read (and partially validated) but before it has been used. These hooks usually do extra validation (the kind not performed by the schema based validation) and set default values π
The "generate" hooks run after the final high level configuration validation. These hooks usually generate files, mainly with the help of the Config::Generator::File module π
Here's what the yacg command does, in order:
- read and partially validate the configuration
- run the
"check"hooks - perform the final configuration validation
- run the
"generate"hooks - cleanup (e.g. handle the
"manifest"file)
Note: module dependencies are handled by Perl when it loads them, so the hooks will run in the correct order: the"check"hook of a given module will run after the"check"hooks of all the modules it depends on π
β¨ FUNCTIONS β¨
This module provides the following functions (none of them being exported by default) π
register_hook("check"|"generate", CODE)β register the given"check"or"generate"hook πrun_hooks("check"|"generate")β run all the previously registered"check"or"generate"hooks π₯
π AUTHOR π
Lionel Cons <http://cern.ch/lionel.cons> π¦
Copyright (C) CERN 2013-2016 πΈ
And that's the whole vibe check, bestie: signing off with perl v5.32.1 energy, dated 2019-07-26, from the Config:...or::Hook(3) page π
β¨
π¦ 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