warren/cmd_deploy.go

42 lines
624 B
Go
Raw Normal View History

2014-12-10 07:04:49 +00:00
package main
import (
"fmt"
)
var deployUsage = `
warren deploy - Deploys the go server and support files
`
var deployCmd = &Command{
Name: "deploy",
Usage: "",
Summary: "deploy the go server and support files",
Help: deployUsage,
Run: deployRun,
}
func checkDeployDir() {
// does ./deploy exist?
// if not make
// does ./deploy/DST exist?
// if not make
}
func getDeployFilesList() []string {
return []string{""}
}
2014-12-10 07:04:49 +00:00
func deployRun(cmd *Command, args ...string) {
if len(args) > 0 && args[0] == "help" {
fmt.Print(cmd.Help)
return
}
checkDeployDir()
//files := getDeployFilesList()
2014-12-10 07:04:49 +00:00
}