jenkins-cli
jenkins-cli copied to clipboard
Cannot edit config file by jcli when lcak of vim
In some environments, there's novim
. But in most cases, vi
exists. So we should support both vim
and vi
.
Here is the error information when executing jcli
under a non-vi env:
# jcli config gen
2020/02/17 11:57:46 No config file found.
? Cannot found your config file, do you want to edit it? Yes
? Edit your config file [Enter to launch editor] Error: exec: "vim": executable file not found in $PATH
~~Hello, I've just installed and even though I have vim installed, it still gives this error~~ It was the version, ubuntu snap version is still 0.0.28, installed manually to 0.0.38 and it worked