Skip to content

Commit

Permalink
minor markdown style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Theisen committed Mar 27, 2023
1 parent 0de66ca commit 8985c45
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,12 @@ db:

Then with:

```yaml
```bash
clconf \
--yaml /etc/myapp/config.yml \
--yaml /etc/myapp/secrets.yml \
getv \
> /app/config/application.yml
--yaml /etc/myapp/config.yml \
--yaml /etc/myapp/secrets.yml \
getv \
> /app/config/application.yml
```

You would have a file containing:
Expand Down Expand Up @@ -301,13 +301,13 @@ Then add your secrets:

```bash
clconf \
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
csetv /db/username dbuser
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
csetv /db/username dbuser
clconf \
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
csetv /db/password dbpass
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
csetv /db/password dbpass
```

Which would result in something safe to commit with your source code:
Expand All @@ -323,23 +323,23 @@ These values can be decrypted using:

```bash
clconf \
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
cgetv /db/username
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
cgetv /db/username
clconf \
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
cgetv /db/password
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
cgetv /db/password
```

Or in conjunction with templates

```bash
clconf \
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
getv / \
--template-string '{{ cgetv "/db/username" }}:{{ cgetv "/db/password" }}'
--secret-keyring testdata/test.secring.gpg \
--yaml C:/Temp/config.yml \
getv / \
--template-string '{{ cgetv "/db/username" }}:{{ cgetv "/db/password" }}'
```

### Templating
Expand Down

0 comments on commit 8985c45

Please sign in to comment.