236274eef1
This adds the NewAirshipCTLCommand, a function which returns the root airshipctl command with all of the default plugins preloaded
22 lines
307 B
Go
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)
|
|
}
|
|
}
|