caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 40 forks source link

Have to enter branch name twice in caprover cli #40

Open tschut opened 5 years ago

tschut commented 5 years ago

What is the problem? Everytime I run caprover deploy I have to enter the cli asks for branch name twice. It's not a blocker or anything, just a small annoyance.

Steps to reproduce the problem: Run caprover deploy. When asked to enter the branch name, I have to 'enter' twice. Doesn't matter if I type out the branch name or accept the default. caprover-cli

Answers to the following questions where applicable: Windows 10, Node 10.13.0, happens in cmd and powershell.

Hazzard17h commented 4 years ago

From the gif, it seems that the branch line is repeated, but the answer is already present after it was first entered. Anyway, I think this could be an issue caused by running the CLI with powershell/cmd, because the inquirer tool is not fully windows compatible.

tschut commented 4 years ago

I see the same behaviour when running carpover deploy -t x.tar, but on the question ? are you sure you want to deploy? (Y/n)

Hazzard17h commented 4 years ago

Very strange behavior...

dmwyatt commented 4 years ago

Is it possible that this is also causing caprover deploy --default to not work on Windows in cmd or powershell? It just freezes after "Ensuring authentication...", but IIRC I've used it successfully from Linux boxes.

essenciary commented 4 months ago

The issue is still present, branch name is asked twice (second time without a prompt) image