func main() { hd := master.GetDbConnection() workflows := master.GetWorkflows(hd) for _, w := range workflows { client.Debug("--------------------------Begin--------------------------") client.Debug("Workflow ID:", w.Id) client.Debug(workflow.WorkflowToString(hd, w)) client.Debug("---------------------------End---------------------------") } }
func main() { if len(os.Args) != 2 { printUsage() return } host := os.Args[1] hd := master.GetDbConnection() client.Debug("Starting server on", host) client.Debug("Press Ctrl-C to stop") master.StartServer(host, hd) waitForInterrupt() }
func main() { if len(os.Args) != 2 { printUsage() return } hd := master.GetDbConnection() reader, err := os.Open(os.Args[1]) if err != nil { panic(err) } w, err := workflow.ReadWorkflow(hd, reader) if err != nil { panic(err) } client.Debug("Loaded workflow") client.Debug("--------------------------Begin--------------------------") client.Debug("Workflow ID:", w.Id) client.Debug(workflow.WorkflowToString(hd, w)) client.Debug("---------------------------End---------------------------") }
/* Reset and initalize the master database tables. Note that this * will delete any existing data. * * Usage: * go run init_dabatase.go * */ func main() { hd := master.GetDbConnection() master.ResetDb(hd) master.CreateTables(hd) client.Debug("Success") }