Simple GUI wrapper for VV
Closed this issue · 7 comments
I've been thinking about creating a simple GUI for VV, as most things can be completely done as flags to the command.
You could do an exec( 'which vv' )
to see if vv is installed, and if so, you could have an "Add new site button" that prompts for a few options (site name, etc) and then just passes all of that to an exec()
where vv takes care of all the dirty work of creation.
That sounds like a brilliant thing to have.
It will really enhance both the Dashboard experience as well as the vv
experience (might even help those who hate terminal adopt VVV.
Think we can work together in making this happen.
Totally - I'll get a simple PR for this up this week.
Wouldn't you need to exec
VV within the host machine to do this?
Oh yeah - thats a great point.
Not sure if theres an easy way to bubble up to the parent host.
So Simple GUI is not that simple then.
What do you guys think we need to figure out in order to have a reasonable attempt at this?
(I have some time to research, and would like to understand the issue better.)
I'd maybe look at injecting a code block for something like vagrant-host-shell into the /vagrant/Vagrantfile
(on the VM) that could then execute the injected commands on a vagrant reload
.
We could potentially run most of the creation command and all of that inside the VM, as long as we bypass all the path detection. This would require VV being installed inside of the VM, but when it comes down to it, all VV really does is right to files within the WWW folder of VVV.
I could probably add some flags to VV to be executed inside of the VM, and then we could install vv in the host machine, and have vv create all the vvv-init.sh files, and the vagrant reloading would have to be done on the host machine.