You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
363 B
Go
27 lines
363 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"periodic/prddeploy/commands"
|
|
)
|
|
|
|
func main() {
|
|
|
|
if len(os.Args) < 2 {
|
|
fmt.Fprintf(os.Stderr, "Usage: %s <command> [args...]", os.Args[0])
|
|
os.Exit(1)
|
|
}
|
|
|
|
switch os.Args[1] {
|
|
case "upload_file":
|
|
commands.UploadFile()
|
|
//upload_file()
|
|
case "run_command":
|
|
commands.RunCommand()
|
|
default:
|
|
fmt.Println("HERE")
|
|
}
|
|
}
|