added conf/ and configuration logic

This commit is contained in:
pb
2024-07-03 10:22:22 +02:00
parent dd6f112954
commit f9e5c591bd
6 changed files with 15 additions and 92 deletions

10
main.go
View File

@@ -25,13 +25,23 @@ func main() {
if err != nil {
log.Fatal().Msg("Failed to get the workspaces list, check api url and that api server is up : " + apiurl)
}
println("Available workspaces :")
for workspace, _ := range list {
println(workspace)
}
if _, err := os.Stat("./argo_workflows/"); os.IsNotExist(err) {
os.Mkdir("./argo_workflows/",0755)
log.Info().Msg("Created argo_workflows/")
}
g.LoadFrom(list["test-alpr"])
g.ExportToArgo("test-alpr")
for(1 == 1){
fmt.Print("")
}
fmt.Print("stop")
}