diff --git a/README.md b/README.md index 7e5cdd1..8ad5ea1 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,12 @@ Inspired by [`vagrant-hostmanager`](https://github.com/devopsgroup-io/vagrant-ho ## Installation -To install from source: +To install from source, [dep](github.com/golang/dep) must be used: ``` -go install github.com/costela/docker-etchosts +go get -d github.com/costela/docker-etchosts +cd $GOPATH/src/github.com/costela/docker-etchosts +dep ensure -vendor-only +go install ``` And run it as `docker-etchosts` diff --git a/main.go b/main.go index 6f4f02f..fbb3a78 100644 --- a/main.go +++ b/main.go @@ -30,6 +30,7 @@ import ( log "github.com/sirupsen/logrus" ) +// ConfigSpec holds the runtime configuration type ConfigSpec struct { LogLevel string `default:"warn" split_words:"true"` EtcHostsPath string `default:"/etc/hosts" split_words:"true"`