diff --git a/README.md b/README.md index e661198..fbb0f1e 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -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