airshipctl/main.go

27 lines
434 B
Go

package main
import (
"fmt"
"os"
"github.com/ian-howell/airshipctl/cmd"
"github.com/ian-howell/airshipctl/pkg/log"
)
func main() {
rootCmd, settings, err := cmd.NewRootCmd(os.Stdout)
if err != nil {
fmt.Fprintln(os.Stdout, err)
os.Exit(1)
}
cmd.AddDefaultAirshipCTLCommands(rootCmd, settings)
log.Init(settings, os.Stdout)
if err := rootCmd.Execute(); err != nil {
fmt.Fprintln(os.Stdout, err)
os.Exit(1)
}
}