Subclassable and auto-magic config module utilizing M<Config::ZOMG>. It looks up which config path to use based on current mode, share dir and class name. Falls back to a relative share dir when run as part of tests.
=head1 ATTRIBUTES
=head2 config
Returns a hashref representation of the config
=head2 dist
The dist name used to find a share dir where the config file is located.
=head2 global_path
Global path overriding any lookup by dist, relative or by class of object.
=head2 mode
String used as part of name to lookup up config merged on top of general config.
For instance if mode is set to "production", the config used will be: config.production.yml merged on top of config.yml
Default is 'dev', except when HARNESS_ACTIVE env-var is set for instance when running tests, then mode is 'test'.
=head2 name
Name of config file, default is "config"
=head2 config_path
Path where to look for config files.
=head2 lookup_order
Order of config lookup. Default is ['by_dist', 'by_self', 'relative'], except when under tests when it is ['relative', 'by_dist', 'by_self']
=head1 METHODS
=head2 get
Gets a config value, supports an array of strings to traverse down to a certain child hash value.
=head2 new
Create a new config instance
=head2 new
Get an existing config instance if already created see M<MooX::Singleton>. Beware that altering env-vars between invocations will not affect the instance init args.
=head2 share_file
Gets the full path to a file residing in the share folder relative to the config.
=head1 COPYRIGHT
Nicolas Mendoza 2023 - All rights reserved
=cut
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
go to github issues (only if github is preferred repository)