INNER CODE UNIT · Go

main

kubernetes/enhancements · cmd/kepify/main.go:38

func main() {
	dirPath := flag.String("dir", "keps", "root directory for the KEPs")
	filePath := flag.String("output", "keps.json", "output json file")

	flag.Usage = Usage
	flag.Parse()

	if *dirPath == "" {
		fmt.Fprintf(os.Stderr, "please specify the root directory for KEPs using '--dir'\n")
		os.Exit(1)
	}

	if _, err := os.Stat(*dirPath); os.IsNotExist(err) {
		fmt.Printf("directory does not exist : %s", *dirPath)
		os.Exit(1)
	}

	if *filePath == "" {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…