Matt Low
6599af042b
- Use init() function to set up commands - Expose an Execute() function instead of the root command
16 lines
174 B
Go
16 lines
174 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"git.mlow.ca/mlow/lmcli/pkg/cli"
|
|
)
|
|
|
|
func main() {
|
|
if err := cli.Execute(); err != nil {
|
|
fmt.Fprint(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|