mirror of https://github.com/rwxrob/z
trap error from main command
parent
bba44c7550
commit
4d2b8857b7
@ -1,7 +1,14 @@
|
||||
package main
|
||||
|
||||
import "github.com/rwxrob/z"
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/rwxrob/z"
|
||||
)
|
||||
|
||||
func main() {
|
||||
z.Cmd.Execute()
|
||||
err := z.Cmd.Execute()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue