portainer-devtool/go/main.go

27 lines
492 B
Go
Raw Normal View History

2022-08-21 15:05:29 +10:00
package main
import (
"log"
2022-09-21 15:42:47 +10:00
"ocl/portainer-devtool/configs"
"ocl/portainer-devtool/tasks"
2022-08-21 15:05:29 +10:00
)
func main() {
2022-09-21 15:42:47 +10:00
config, err := configs.GetConfig()
if err != nil {
log.Fatalln(err)
}
2022-08-21 15:05:29 +10:00
config.Summarize()
2022-09-21 15:42:47 +10:00
// Init tasks
taskItems := []tasks.Tasker{
tasks.NewGenerateJwtTokenTask(config),
2022-12-25 22:53:51 +11:00
tasks.NewCurlLookupTask(),
2022-12-25 23:10:16 +11:00
tasks.NewCodeSecurityScanTask(),
tasks.NewListDevToolCommandTask(config),
2022-09-21 15:42:47 +10:00
}
tasks.ListCommandMenu(taskItems, "Which repository of action do you want operate:")
2022-08-21 15:05:29 +10:00
}