diff --git a/cmd_deploy.go b/cmd_deploy.go new file mode 100644 index 0000000..852d395 --- /dev/null +++ b/cmd_deploy.go @@ -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 + } +} diff --git a/warren.go b/warren.go index c00018e..2b334b5 100644 --- a/warren.go +++ b/warren.go @@ -22,6 +22,7 @@ Commands:{{range .}} var commands = []*Command{ buildCmd, + deployCmd, } func usage() {