github.com/kubeshop/testkube@v1.17.23/cmd/tcl/testworkflow-toolkit/main.go (about) 1 // Copyright 2024 Testkube. 2 // 3 // Licensed as a Testkube Pro file under the Testkube Community 4 // License (the "License"); you may not use this file except in compliance with 5 // the License. You may obtain a copy of the License at 6 // 7 // https://github.com/kubeshop/testkube/blob/main/licenses/TCL.txt 8 9 package main 10 11 import ( 12 "errors" 13 14 "github.com/kubeshop/testkube/cmd/tcl/testworkflow-toolkit/commands" 15 "github.com/kubeshop/testkube/cmd/tcl/testworkflow-toolkit/env" 16 "github.com/kubeshop/testkube/pkg/ui" 17 ) 18 19 func main() { 20 // Set verbosity 21 ui.SetVerbose(env.Debug()) 22 23 // Validate provided data 24 if env.Namespace() == "" || env.Ref() == "" { 25 ui.Fail(errors.New("environment is misconfigured")) 26 } 27 28 commands.Execute() 29 }