nats-io / natscli

The NATS Command Line Interface
Apache License 2.0
510 stars 99 forks source link

Support for EDITOR with args when editing context #1173

Closed joeriddles closed 1 month ago

joeriddles commented 1 month ago

Proposed change

I would like to be able to use VS Code to edit my NATS context. VS Code has a --wait option to wait for the files to be closed before returning, but currently I get an error when using it.

$ nats context edit cluster_joe
nats: error: exec: "code --wait": executable file not found in $PATH

This could also be useful for any other use of "EDITOR".

Use case

I would like to edit my NATS context using VS Code with args.

Contribution

Yes