MCPcopy Create free account
hub / github.com/danderson/netboot / CLI

Function CLI

pixiecore/cli/cli.go:37–48  ·  view source on GitHub ↗

CLI runs the Pixiecore commandline. This function always exits back to the OS when finished.

()

Source from the content-addressed store, hash-verified

35//
36// This function always exits back to the OS when finished.
37func CLI() {
38 if v1compatCLI() {
39 return
40 }
41
42 cobra.OnInitialize(initConfig)
43 if err := rootCmd.Execute(); err != nil {
44 fmt.Println(err)
45 os.Exit(-1)
46 }
47 os.Exit(0)
48}
49
50// This represents the base command when called without any subcommands
51var rootCmd = &cobra.Command{

Callers 2

mainFunction · 0.92
mainFunction · 0.92

Calls 1

v1compatCLIFunction · 0.85

Tested by

no test coverage detected