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.

26 lines
376 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()
case "run_command":
commands.RunCommand()
default:
fmt.Println("Command not found: %s\n", os.Args[1])
}
}