mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 01:28:08 -05:00
27 lines
467 B
Go
27 lines
467 B
Go
package clihelper
|
|
|
|
import (
|
|
"github.com/opencloud-eu/opencloud/pkg/version"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
func DefaultApp(app *cli.App) *cli.App {
|
|
// version info
|
|
app.Version = version.String
|
|
app.Compiled = version.Compiled()
|
|
|
|
// author info
|
|
app.Authors = []*cli.Author{
|
|
{
|
|
Name: "OpenCloud GmbH",
|
|
Email: "support@opencloud.eu",
|
|
},
|
|
}
|
|
|
|
// disable global version flag
|
|
// instead we provide the version command
|
|
app.HideVersion = true
|
|
|
|
return app
|
|
}
|