Skip to content

Commit

Permalink
docs: correct name of clusters directory (#494)
Browse files Browse the repository at this point in the history
Actual folder is 'clusters', however docs all reference the 'cluster' folder.
  • Loading branch information
plinnegan authored Nov 10, 2021
1 parent 288039e commit 2a6b5f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/commands/d2-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ To avoid having to pass in all arguments over and over when using the
configuration per cluster in a `config.json` file.

```bash
d2 debug cache list cluster/2.32.0
d2 debug cache list clusters/2.32.0
┌────────────────┬──────┬─────────────────────┐
│ Name │ Size │ Modified │
├────────────────┼──────┼─────────────────────┤
Expand All @@ -133,7 +133,7 @@ d2 debug cache list cluster/2.32.0
And it looks like this:

```bash
cat ~/.cache/d2/cache/cluster/2.32.0/config.json
cat ~/.cache/d2/cache/clusters/2.32.0/config.json
{
"channel": "dev",
"dbVersion": "2.32",
Expand Down Expand Up @@ -164,7 +164,7 @@ The second time you run `up superfly` it will use the configuration from
the first run:

```bash
cat ~/.cache/d2/cache/cluster/superfly/config.json
cat ~/.cache/d2/cache/clusters/superfly/config.json
{
"channel": "dev",
"dbVersion": "2.31",
Expand Down Expand Up @@ -212,7 +212,7 @@ module.exports = {
d2 cluster up superfly

# saves the configuration to `config.json`
cat ~/.cache/d2/cache/cluster/superfly/config.json
cat ~/.cache/d2/cache/clusters/superfly/config.json
{
"channel": "dev",
"dbVersion": "2.31",
Expand All @@ -230,7 +230,7 @@ for a cluster as well:
# port is 9999 in ~/.config/d2/config.js:clusters.superfly.port
d2 cluster up superfly --port 8888
# port is saved as 8888 in ~/.cache/d2/cache/cluster/superfly/config.json:port
# port is saved as 8888 in ~/.cache/d2/cache/clusters/superfly/config.json:port
```

Now for each subsequence `down` and `up` command, the cached config will
Expand Down

0 comments on commit 2a6b5f5

Please sign in to comment.