Sops: Use vscode as editor for sops

Created on 21 Sep 2018  路  3Comments  路  Source: mozilla/sops

I can't seem to get sops to work with Visual Studio Code as its editor in Windows. vscode is already in the PATH. However, sops prints the decrypted content on the console instead of opening the editor.

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

c:\>echo %EDITOR%
"code"

c:\>sops-3.1.0.exe --decrypt encrypted.txt
Decrypted content

Most helpful comment

Thanks. In this case I should be using code --wait

All 3 comments

Please see #127

Thanks. In this case I should be using code --wait

I made an extension for VSCode to automatic decrypt -> edit -> encrypt sops yaml/json file in-place.
Maybe it helps someone
https://marketplace.visualstudio.com/items?itemName=signageos.signageos-vscode-sops

Was this page helpful?
0 / 5 - 0 ratings

Related issues

coretemp picture coretemp  路  5Comments

b-meson picture b-meson  路  6Comments

naadev picture naadev  路  6Comments

HerrmannHinz picture HerrmannHinz  路  5Comments

davidovich picture davidovich  路  5Comments