Skip to content

Commit

Permalink
Update README with extra examples
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbode committed Apr 1, 2024
1 parent 7558341 commit 418d98f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
[Sops](https://github.com/mozilla/sops) plugin for the
[Mise](https://github.com/jdx/mise) version manager.

Based on [asdf-sops](https://github.com/feniix/asdf-sops).

## Install

```
Expand All @@ -19,6 +21,31 @@ following `.mise.toml`:
sops = { version = "latest", filename = ".sops.env" }
```

If only some variables should be exported, then a name filter (separated by `:`)
can be applied:

```toml
[tools]
sops = {
version = "latest",
filename = ".sops.env",
names = "GITHUB_TOKEN:PYPI_TOKEN"
}
```

Note: The names filter can be any
[bash-compatible regular expression](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html),
such as `[A-Z]+_TOKEN|AWS_[A-Z_]+` (matches are anchored between `^` and `$` but
can use `|` for alternation)

Additional filenames can be processed (last wins) by separating entries with
`:`, e.g.:

```toml
[tools]
sops = { version = "latest", filename = ".foo.env:.bar.env" }
```

## License

Licensed under the
Expand Down

0 comments on commit 418d98f

Please sign in to comment.