refactor: switch to go mod

This hopefully makes it a little easier to work with as the tooling is now based on something in golang core.

- move columnize usage to common plugin
- remove old vendor files
This commit is contained in:
Jose Diaz-Gonzalez
2020-06-27 22:41:57 -04:00
parent 1eaa98d3e6
commit 45e3623ffd
194 changed files with 487 additions and 13341 deletions

View File

@@ -8,7 +8,6 @@ import (
"strings"
"github.com/dokku/dokku/plugins/common"
columnize "github.com/ryanuber/columnize"
)
const (
@@ -60,11 +59,5 @@ func main() {
}
func usage() {
config := columnize.DefaultConfig()
config.Delim = ","
config.Prefix = " "
config.Empty = ""
content := strings.Split(helpContent, "\n")[1:]
fmt.Println(helpHeader)
fmt.Println(columnize.Format(content, config))
common.CommandUsage(helpHeader, helpContent)
}