summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorShu Kutsuzawa <cappyzawa@gmail.com>2021-02-22 03:51:36 +0900
committerGitHub <noreply@github.com>2021-02-21 19:51:36 +0100
commit51f752f6b0ddb616a03923bf0de0adac2f565beb (patch)
treebfd2a9f3da53c3fc26c5917739b3a00ad6f03081 /docs
parente73581ddf00207fa0b17a07b43ac0f7785eb1811 (diff)
feat(perl): Configure when the module is shown (#2355)
This makes it possible to configure when the perl module is shown based on the contents of a directory. This should make it possible to be a lot more granular when configuring the module.
Diffstat (limited to 'docs')
-rw-r--r--docs/config/README.md17
1 files changed, 10 insertions, 7 deletions
diff --git a/docs/config/README.md b/docs/config/README.md
index 7104d1d57..05ad449f8 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -1966,7 +1966,7 @@ format = "via [🎁 $version](208 bold) "
## Perl
The `perl` module shows the currently installed version of Perl.
-The module will be shown if any of the following conditions are met:
+By default the module will be shown if any of the following conditions are met:
- The current directory contains a `Makefile.PL` or `Build.PL` file
- The current directory contains a `cpanfile` or `cpanfile.snapshot` file
@@ -1976,12 +1976,15 @@ The module will be shown if any of the following conditions are met:
### Options
-| Option | Default | Description |
-| ---------- | ------------------------------------ | ----------------------------------------------------- |
-| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
-| `symbol` | `"🐪 "` | The symbol used before displaying the version of Perl |
-| `style` | `"bold 149"` | The style for the module. |
-| `disabled` | `false` | Disables the `perl` module. |
+| Option | Default | Description |
+| -------------------- | ------------------------------------ | ----------------------------------------------------- |
+| `format` | `"via [$symbol($version )]($style)"` | The format string for the module. |
+| `symbol` | `"🐪 "` | The symbol used before displaying the version of Perl |
+| `detect_extensions` | `["pl", "pm", "pod"]` | Which extensions should trigger this moudle. |
+| `detect_files` | `["Makefile.PL", "Build.PL", "cpanfile", "cpanfile.snapshot", "META.json", "META.yml", ".perl-version"]` | Which filenames should trigger this module. |
+| `detect_folders` | `[]` | Which folders should trigger this module. |
+| `style` | `"bold 149"` | The style for the module. |
+| `disabled` | `false` | Disables the `perl` module. |
### Variables