使用 vscode 作为 sops 的编辑器

Ami*_*ibi 6 visual-studio-code mozilla-sops

我似乎无法与它的编辑sops一起工作Visual Studio Codevscode已经在PATH. 但是,sops在控制台上打印解密的内容而不是打开编辑器。

c:\>code .
----^ this opens the Visual Studio Code editor

c:\>echo %EDITOR%
"code"

c:\>sops-3.1.0.exe --decrypt encrypted.txt
Decrypted content
Run Code Online (Sandbox Code Playgroud)

我尝试设置EDITORvscode的完整路径,同样的问题。

有谁用过vscodesops知道如何在 Windows 中执行此操作?

Ami*_*ibi 10

弄清楚了!

我应该用作code --wait我的EDITOR

参考:https: //github.com/mozilla/sops/issues/127