INNER CODE UNIT · Go

main

arttor/helmify · cmd/helmify/main.go:12

func main() {
	conf, err := ReadFlags()
	if err != nil {
		fmt.Println(err)
		flag.Usage()
		os.Exit(1)
	}
	stat, err := os.Stdin.Stat()
	if err != nil {
		logrus.WithError(err).Error("stdin error")
		os.Exit(1)
	}
	if len(conf.Files) == 0 && (stat.Mode()&os.ModeCharDevice) != 0 {
		logrus.Error("no data piped in stdin")
		os.Exit(1)
	}
	if err = app.Start(os.Stdin, conf); err != nil {
		logrus.WithError(err).Error("helmify finished with error")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…