Ever wished you could spin up a Vagrant guest plugin right quick? Now, with vagrant-guest-plugin-skeleton you can! Follow these steps:
- Copy this repo. Its a template so follow the Github instructions to create a repo from a template using the UI, or use the github cli.
$ gh repo create vagrant-guest-myspecialguest --template soapy1/vagrant-guest-plugin-skeleton --public
- Setup your go project
$ go mod init github.com/USERNAME/vagrant-guest-MYSPECIALGUEST
- Update some bits
- update the name of your guest in the
internal/guest
package andmain.go
- update the import statements in
main.go
- Tidy everything up
$ go mod tidy
$ go build .
- Fill in the implementation!