Package Info

perl-Config-GitLike


Git-compatible config file parsing


Development/Libraries/Perl

This module handles interaction with configuration files of the style used by the version control system Git. It can both parse and modify these files, as well as create entirely new ones.

You only need to know a few things about the configuration format in order to use this module. First, a configuration file is made up of key/value pairs. Every key must be contained in a section. Sections can have subsections, but they don't have to. For the purposes of setting and getting configuration variables, we join the section name, subsection name, and variable name together with dots to get a key name that looks like "section.subsection.variable". These are the strings that you'll be passing in to 'key' arguments.

Configuration files inherit from each other. By default, 'Config::GitLike' loads data from a system-wide configuration file, a per-user configuration file, and a per-directory configuration file, but by subclassing and overriding methods you can obtain any combination of configuration files. By default, configuration files that don't exist are just skipped.

See http://www.kernel.org/pub/software/scm/git/docs/git-config.html#_configurat ion_file for details on the syntax of git configuration files. We won't waste pixels on the nitty gritty here.

While the behavior of a couple of this module's methods differ slightly from the 'git config' equivalents, this module can read any config file written by git. The converse is usually true, but only if you don't take advantage of this module's increased permissiveness when it comes to key names. (See DIFFERENCES FROM GIT-CONFIG for details.)

This is an object-oriented module using Moo. All subroutines are object method calls.

A few methods have parameters that are always used for the same purpose:


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/Config-GitLike

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.18-bp155.2.8 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike
1.18-bp154.1.13 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike
1.17-bp153.1.12 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike
1.17-bp152.3.13 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike
1.17-bp151.3.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike
1.17-bp151.2.10 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike
1.17-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Config-GitLike