jenkins-cli icon indicating copy to clipboard operation
jenkins-cli copied to clipboard

Cannot edit config file by jcli when lcak of vim

Open LinuxSuRen opened this issue 5 years ago • 2 comments

In some environments, there's novim. But in most cases, vi exists. So we should support both vim and vi.

LinuxSuRen avatar Feb 17 '20 03:02 LinuxSuRen

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

LinuxSuRen avatar Feb 17 '20 03:02 LinuxSuRen

~~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

BigsonLvrocha avatar Nov 25 '21 12:11 BigsonLvrocha