Sops plugin for the Mise version manager.
Based on asdf-sops.
$ mise plugins install https://github.com/mise-plugins/mise-sops.gitAutomatically activate the SOPS environment when entering the directory with the
following .mise.toml:
[tools]
sops = { version = "latest", filename = ".sops.env" }If only some variables should be exported, then a name filter (separated by :)
can be applied:
[tools]
sops = {
version = "latest",
filename = ".sops.env",
names = "GITHUB_TOKEN:PYPI_TOKEN"
}Note: The names filter can be any
bash-compatible regular expression,
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.:
[tools]
sops = { version = "latest", filename = ".foo.env:.bar.env" }Licensed under the MIT license.