add stub for deploy cmd

This commit is contained in:
Dan Ballard 2014-12-09 23:04:49 -08:00
parent e36d6c4083
commit 22952bd21f
2 changed files with 25 additions and 0 deletions

24
cmd_deploy.go Normal file
View File

@ -0,0 +1,24 @@
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 deployRun(cmd *Command, args ...string) {
if len(args) > 0 && args[0] == "help" {
fmt.Print(cmd.Help)
return
}
}

View File

@ -22,6 +22,7 @@ Commands:{{range .}}
var commands = []*Command{ var commands = []*Command{
buildCmd, buildCmd,
deployCmd,
} }
func usage() { func usage() {