restructure to build individual binaries
This commit is contained in:
@@ -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 {
|
||||
@@ -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 == "" {
|
||||
@@ -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 == "" {
|
||||
Reference in New Issue
Block a user