26 lines
357 B
Go
26 lines
357 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
const (
|
|
appName = "webserver"
|
|
appVersion = "0.0.2"
|
|
)
|
|
|
|
func NewApp() *cli.App {
|
|
return &cli.App{
|
|
Name: appName,
|
|
Version: appVersion,
|
|
Usage: "AutoLibrary Web Server CLI",
|
|
Commands: []*cli.Command{
|
|
&cmdStartAll,
|
|
&cmdFrontend,
|
|
&cmdBackend,
|
|
&cmdConfig,
|
|
},
|
|
Action: nil,
|
|
}
|
|
}
|