restructure to build individual binaries

This commit is contained in:
Michael Hobbs
2017-01-14 20:22:37 -08:00
parent e61475c7ea
commit fc31b28ab6
8 changed files with 30 additions and 43 deletions

View File

@@ -33,10 +33,6 @@ func main() {
usage()
case "help":
fmt.Print(helpContent)
case "repo:gc":
gitGC()
case "repo:purge-cache":
purgeCache()
default:
dokkuNotImplementExitCode, err := strconv.Atoi(os.Getenv("DOKKU_NOT_IMPLEMENTED_EXIT"))
if err != nil {

View File

@@ -8,7 +8,7 @@ import (
)
// runs 'git gc --aggressive' against the application's repo
func gitGC() {
func main() {
flag.Parse()
appName := flag.Arg(1)
if appName == "" {

View File

@@ -9,7 +9,7 @@ import (
)
// deletes the contents of the build cache stored in the repository
func purgeCache() {
func main() {
flag.Parse()
appName := flag.Arg(1)
if appName == "" {