bbenoist / vscode-vagrant

Vagrant support for Visual Studio Code
https://marketplace.visualstudio.com/items/bbenoist.Vagrant
MIT License
38 stars 16 forks source link

Interactive Vagrant commands #12

Open Metachemix1 opened 6 years ago

Metachemix1 commented 6 years ago

Currently it's not possible to run a Vagrantfile that needs input because its output is sent to "Output window" instead of terminal.

The scenario below shows an example of what happens in the Output console.. It asks me which switch I want to use during the setup for my Docker environment in Vagrant. However I'm not able to input anything here because its read-only.

==> default: Successfully added box 'hashicorp/precise64' (v1.1.0) for 'hyperv'! ==> default: Configured startup memory is 4096 ==> default: Importing a Hyper-V instance default: Please choose a switch to attach to your Hyper-V instance. default: If none of these are appropriate, please open the Hyper-V manager default: to create a new virtual switch. default: default: 1) DockerNAT default: 2) Default Switch default: 3) nat default: 4) DockerEXT default: default: What switch would you like to use?

Is it possible to send the "Vagrant Up" output to a terminal shell which makes it interactive so I can provide input during the setup of my Vagrantfile?

Kind regards