airshipctl/main.go
Ian Howell 236274eef1 Add a convenience NewAirshipCTLCommand function
This adds the NewAirshipCTLCommand, a function which returns the root
airshipctl command with all of the default plugins preloaded
2019-06-07 14:06:37 -05:00

22 lines
307 B
Go

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