use plain pkg module

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2025-01-13 16:42:19 +01:00
committed by Florian Schade
parent 259cbc2e56
commit b07b5a1149
841 changed files with 1383 additions and 1366 deletions
+26
View File
@@ -0,0 +1,26 @@
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: "ownCloud GmbH",
Email: "support@owncloud.com",
},
}
// disable global version flag
// instead we provide the version command
app.HideVersion = true
return app
}