summaryrefslogtreecommitdiffstats
path: root/docs/config
diff options
context:
space:
mode:
authorJohn Hooks <hooksie11@gmail.com>2024-05-15 12:46:14 -0400
committerGitHub <noreply@github.com>2024-05-15 18:46:14 +0200
commit5facd85da56d28e74878286923f148bc468f71c3 (patch)
treef0b321b9b85f991adeaf9af9376bbd7314fd0e90 /docs/config
parent2221a88f5ada124c657a265b878e37be47998766 (diff)
feat(nats): Add NATS Context (#5900)
--------- Co-authored-by: David Knaack <davidkna@users.noreply.github.com>
Diffstat (limited to 'docs/config')
-rw-r--r--docs/config/README.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/docs/config/README.md b/docs/config/README.md
index 8a18648cb..035c11caa 100644
--- a/docs/config/README.md
+++ b/docs/config/README.md
@@ -339,6 +339,7 @@ $aws\
$gcloud\
$openstack\
$azure\
+$nats\
$direnv\
$env_var\
$crystal\
@@ -2937,6 +2938,35 @@ truncation_length = 4
truncation_symbol = ''
```
+## NATS
+
+The `nats` module shows the name of the current [NATS](https://nats.io) context.
+
+### Options
+
+| Option | Default | Description |
+| ---------- | -------------------------- | ------------------------------------------------------------ |
+| `symbol` | `'✉️ '` | The symbol used before the NATS context (defaults to empty). |
+| `style` | `'bold purple'` | The style for the module. |
+| `format` | `'[$symbol$name]($style)'` | The format for the module. |
+| `disabled` | `false` | Disables the `nats` module. |
+
+### Variables
+
+| Variable | Example | Description |
+| -------- | ----------- | ------------------------------------ |
+| name | `localhost` | The name of the NATS context |
+| symbol | | Mirrors the value of option `symbol` |
+| style\* | | Mirrors the value of option `style` |
+
+### Example
+
+```toml
+[nats]
+format = '[$symbol]($style)'
+style = 'bold purple'
+```
+
## Nim
The `nim` module shows the currently installed version of [Nim](https://nim-lang.org/).