Files
opencloud/pkg/clihelper/app.go
André Duffeck 1fff27f281 Rebrand pkg
2025-01-20 09:34:32 +01:00

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
}