INNER CODE UNIT · Go

main

abahmed/kwatch · cmd/kwatch-e2e-issue/main.go:20

func main() {
	issueFile := flag.String("issue-file", "", "path to a GitHub issue body")
	outputDir := flag.String(
		"output-dir", "", "directory for reviewed reproduction data",
	)
	namespace := flag.String("namespace", "kwatch-issue", "scenario namespace")
	image := flag.String("image", "kwatch-e2e-workload:test",
		"already-loaded local workload image")
	flag.Parse()
	if err := run(*issueFile, *outputDir, *namespace, *image); err != nil {
		fmt.Fprintln(os.Stderr, err)
		os.Exit(1)
	}
}

func run(issueFile, outputDir, namespace, image string) error {
	if strings.TrimSpace(issueFile) == "" || strings.TrimSpace(outputDir) == "" {
		return fmt.Errorf("--issue-file and --output-dir are required")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…