mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn test main commands (#481)
This commit is contained in:
@@ -30,7 +30,7 @@ func aliasesFn() []cli.Command {
|
||||
return cmds
|
||||
}
|
||||
|
||||
func main() {
|
||||
func newFn() *cli.App {
|
||||
app := cli.NewApp()
|
||||
app.Name = "fn"
|
||||
app.Version = fnversion
|
||||
@@ -77,6 +77,11 @@ GLOBAL OPTIONS:
|
||||
version(),
|
||||
}
|
||||
app.Commands = append(app.Commands, aliasesFn()...)
|
||||
return app
|
||||
}
|
||||
|
||||
func main() {
|
||||
app := newFn()
|
||||
app.Run(os.Args)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user