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
|
|
|
|
2022-09-22 07:24:10 +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(),
|
2022-12-25 23:56:02 +11:00
|
|
|
tasks.NewListDevToolCommandTask(config),
|
2022-09-21 15:42:47 +10:00
|
|
|
}
|
2022-08-21 19:34:10 +10:00
|
|
|
|
2022-12-25 23:56:02 +11:00
|
|
|
tasks.ListCommandMenu(taskItems, "Which repository of action do you want operate:")
|
2022-08-21 15:05:29 +10:00
|
|
|
}
|