I am making a command line app. I want to allow the user, when they are adding values for things in the terminal, to be able to add the value with their text editor. How does git achieve this?
I want to open their default editor, allow them to enter text, and when they save get the value and use that value for my app.
Thanks.
Typically, you do four things:
$EDITOR
, giving the name of the temporary file as an argument.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With