Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use vscode as editor for sops #380

Closed
gheibia opened this issue Sep 21, 2018 · 3 comments
Closed

Use vscode as editor for sops #380

gheibia opened this issue Sep 21, 2018 · 3 comments

Comments

@gheibia
Copy link

gheibia commented Sep 21, 2018

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
@autrilla
Copy link
Contributor

Please see #127

@gheibia
Copy link
Author

gheibia commented Sep 21, 2018

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

@gheibia gheibia closed this as completed Sep 21, 2018
@misak113
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants