airshipctl/main.go
Ian Howell cbd1e048c9 Move the client objects out of the settings objects
* This also modifies the way that logging is handled
2019-06-06 10:57:33 -05:00

24 lines
358 B
Go

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