diff --git a/opencloud/pkg/command/root.go b/opencloud/pkg/command/root.go index 77be4594a2..ac1dc4bace 100644 --- a/opencloud/pkg/command/root.go +++ b/opencloud/pkg/command/root.go @@ -17,7 +17,7 @@ import ( func Execute() error { cfg := config.DefaultConfig() - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "opencloud", Short: "opencloud", }) diff --git a/pkg/clihelper/app.go b/pkg/clihelper/app.go index 814b32326a..e2543faff0 100644 --- a/pkg/clihelper/app.go +++ b/pkg/clihelper/app.go @@ -4,33 +4,12 @@ import ( "fmt" "github.com/opencloud-eu/opencloud/pkg/version" + "github.com/spf13/cobra" - "github.com/urfave/cli/v2" ) -// DefaultApp provides some default settings for the cli app -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 -} - -// DefaultAppCobra is a wrapper for DefaultApp that adds Cobra specific settings -func DefaultAppCobra(app *cobra.Command) *cobra.Command { +// DefaultApp is a wrapper for DefaultApp that adds Cobra specific settings +func DefaultApp(app *cobra.Command) *cobra.Command { // TODO: when migration is done this has to become DefaultApp // version info app.Version = fmt.Sprintf("%s (%s <%s>) (%s)", version.String, "OpenCloud GmbH", "support@opencloud.eu", version.Compiled()) diff --git a/services/activitylog/pkg/command/root.go b/services/activitylog/pkg/command/root.go index c61aec8809..e922bd7810 100644 --- a/services/activitylog/pkg/command/root.go +++ b/services/activitylog/pkg/command/root.go @@ -24,7 +24,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the activitylog command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "activitylog", Short: "starts activitylog service", }) diff --git a/services/antivirus/pkg/command/root.go b/services/antivirus/pkg/command/root.go index ecea2c6043..5d9f248b40 100644 --- a/services/antivirus/pkg/command/root.go +++ b/services/antivirus/pkg/command/root.go @@ -19,7 +19,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the antivirus command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "antivirus", Short: "Antivirus service for OpenCloud", }) diff --git a/services/app-provider/pkg/command/root.go b/services/app-provider/pkg/command/root.go index 052e17d76a..2b16a9e32a 100644 --- a/services/app-provider/pkg/command/root.go +++ b/services/app-provider/pkg/command/root.go @@ -24,7 +24,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud app-provider command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "app-provider", Short: "Provide apps for OpenCloud", }) diff --git a/services/app-registry/pkg/command/root.go b/services/app-registry/pkg/command/root.go index d30cdff5f2..3bb6da0158 100644 --- a/services/app-registry/pkg/command/root.go +++ b/services/app-registry/pkg/command/root.go @@ -24,7 +24,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud app-registry command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "app-registry", Short: "Provide an app registry for OpenCloud", }) diff --git a/services/audit/pkg/command/root.go b/services/audit/pkg/command/root.go index 447ab92706..0adf9bf877 100644 --- a/services/audit/pkg/command/root.go +++ b/services/audit/pkg/command/root.go @@ -24,7 +24,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the audit command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "audit", Short: "starts audit service", }) diff --git a/services/auth-app/pkg/command/root.go b/services/auth-app/pkg/command/root.go index f05588e095..51fdf46be3 100644 --- a/services/auth-app/pkg/command/root.go +++ b/services/auth-app/pkg/command/root.go @@ -26,7 +26,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud auth-app command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "auth-app", Short: "Provide app authentication for OpenCloud", }) diff --git a/services/auth-basic/pkg/command/root.go b/services/auth-basic/pkg/command/root.go index 3c1299ed2a..e7b5482ce1 100644 --- a/services/auth-basic/pkg/command/root.go +++ b/services/auth-basic/pkg/command/root.go @@ -24,7 +24,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud auth-basic command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "auth-basic", Short: "Provide basic authentication for OpenCloud", }) diff --git a/services/auth-bearer/pkg/command/root.go b/services/auth-bearer/pkg/command/root.go index f79741f599..599f733b76 100644 --- a/services/auth-bearer/pkg/command/root.go +++ b/services/auth-bearer/pkg/command/root.go @@ -28,7 +28,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud auth-bearer command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "auth-bearer", Short: "Provide bearer authentication for OpenCloud", }) diff --git a/services/auth-machine/pkg/command/root.go b/services/auth-machine/pkg/command/root.go index 918cb998e2..080b1c6539 100644 --- a/services/auth-machine/pkg/command/root.go +++ b/services/auth-machine/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud auth-machine command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "auth-machine", Short: "Provide machine authentication for OpenCloud", }) diff --git a/services/auth-service/pkg/command/root.go b/services/auth-service/pkg/command/root.go index 0d36a806a3..1217ef44b9 100644 --- a/services/auth-service/pkg/command/root.go +++ b/services/auth-service/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud auth-service command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "auth-service", Short: "Provide service authentication for OpenCloud", }) diff --git a/services/clientlog/pkg/command/root.go b/services/clientlog/pkg/command/root.go index 38d8ea9e10..75b2696e59 100644 --- a/services/clientlog/pkg/command/root.go +++ b/services/clientlog/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the clientlog command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "clientlog", Short: "starts clientlog service", }) diff --git a/services/collaboration/pkg/command/root.go b/services/collaboration/pkg/command/root.go index 779287dba4..60f872e9c0 100644 --- a/services/collaboration/pkg/command/root.go +++ b/services/collaboration/pkg/command/root.go @@ -20,7 +20,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the antivirus command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "collaboration", Short: "Serve WOPI for OpenCloud", }) diff --git a/services/eventhistory/pkg/command/root.go b/services/eventhistory/pkg/command/root.go index 11d1f8dde7..64e0c9e3e7 100644 --- a/services/eventhistory/pkg/command/root.go +++ b/services/eventhistory/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the eventhistory command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "eventhistory", Short: "starts eventhistory service", }) diff --git a/services/frontend/pkg/command/root.go b/services/frontend/pkg/command/root.go index 52d5cf9c38..57f417678d 100644 --- a/services/frontend/pkg/command/root.go +++ b/services/frontend/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-frontend command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "frontend", Short: "Provide various HTTP apis for OpenCloud", }) diff --git a/services/gateway/pkg/command/root.go b/services/gateway/pkg/command/root.go index 0d91084137..8a83c2ab43 100644 --- a/services/gateway/pkg/command/root.go +++ b/services/gateway/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-gateway command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "gateway", Short: "Provide a CS3api gateway for OpenCloud", }) diff --git a/services/graph/pkg/command/root.go b/services/graph/pkg/command/root.go index e9f8c3f30e..69c5a478ed 100644 --- a/services/graph/pkg/command/root.go +++ b/services/graph/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud graph command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "graph", Short: "Serve Graph API for OpenCloud", }) diff --git a/services/groups/pkg/command/root.go b/services/groups/pkg/command/root.go index 3931be653a..655a52c6d4 100644 --- a/services/groups/pkg/command/root.go +++ b/services/groups/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud group command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "group", Short: "Provide groups for OpenCloud", }) diff --git a/services/idm/pkg/command/root.go b/services/idm/pkg/command/root.go index c0fb60ba96..9ee4271e8c 100644 --- a/services/idm/pkg/command/root.go +++ b/services/idm/pkg/command/root.go @@ -26,7 +26,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud idm command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "idm", Short: "Embedded LDAP service for OpenCloud", }) diff --git a/services/idp/pkg/command/root.go b/services/idp/pkg/command/root.go index d535ff89ba..c0ec288431 100644 --- a/services/idp/pkg/command/root.go +++ b/services/idp/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-idp command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "idp", Short: "Serve IDP API for OpenCloud", }) diff --git a/services/invitations/pkg/command/root.go b/services/invitations/pkg/command/root.go index 3923756d2e..eab0c97352 100644 --- a/services/invitations/pkg/command/root.go +++ b/services/invitations/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud invitations command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "invitations", Short: "Serve invitations API for OpenCloud", }) diff --git a/services/nats/pkg/command/root.go b/services/nats/pkg/command/root.go index 10951422b5..ce63c2f9c6 100644 --- a/services/nats/pkg/command/root.go +++ b/services/nats/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the nats command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "nats", Short: "starts nats server", }) diff --git a/services/notifications/pkg/command/root.go b/services/notifications/pkg/command/root.go index dc632c6b59..d363ad3d9a 100644 --- a/services/notifications/pkg/command/root.go +++ b/services/notifications/pkg/command/root.go @@ -26,7 +26,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the notifications command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "notifications", Short: "starts notifications service", }) diff --git a/services/ocdav/pkg/command/root.go b/services/ocdav/pkg/command/root.go index 50dd6d1060..b147a8c580 100644 --- a/services/ocdav/pkg/command/root.go +++ b/services/ocdav/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the OpenCloud ocdav command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "ocdav", Short: "Provide a WebDav API for OpenCloud", }) diff --git a/services/ocm/pkg/command/root.go b/services/ocm/pkg/command/root.go index 5aa7b97fff..73c519c7ff 100644 --- a/services/ocm/pkg/command/root.go +++ b/services/ocm/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the ocm command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "ocm", Short: "starts ocm service", }) diff --git a/services/ocs/pkg/command/root.go b/services/ocs/pkg/command/root.go index cd0fc183e6..e25ae60eb9 100644 --- a/services/ocs/pkg/command/root.go +++ b/services/ocs/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-ocs command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "ocs", Short: "Serve OCS API for OpenCloud", }) diff --git a/services/policies/pkg/command/root.go b/services/policies/pkg/command/root.go index 3229890546..884c814064 100644 --- a/services/policies/pkg/command/root.go +++ b/services/policies/pkg/command/root.go @@ -20,7 +20,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the policies command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "policies", Short: "Serve policies for OpenCloud", }) diff --git a/services/postprocessing/pkg/command/root.go b/services/postprocessing/pkg/command/root.go index d80e21d4a6..73171029e5 100644 --- a/services/postprocessing/pkg/command/root.go +++ b/services/postprocessing/pkg/command/root.go @@ -26,7 +26,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the postprocessing command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "postprocessing", Short: "starts postprocessing service", }) diff --git a/services/proxy/pkg/command/root.go b/services/proxy/pkg/command/root.go index 9e32ede908..10ee5398f3 100644 --- a/services/proxy/pkg/command/root.go +++ b/services/proxy/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-proxy command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "proxy", Short: "proxy for OpenCloud", }) diff --git a/services/search/pkg/command/root.go b/services/search/pkg/command/root.go index 91badc9f93..ff158883f2 100644 --- a/services/search/pkg/command/root.go +++ b/services/search/pkg/command/root.go @@ -26,7 +26,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-search command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "search", Short: "Serve search API for OpenCloud", }) diff --git a/services/settings/pkg/command/root.go b/services/settings/pkg/command/root.go index 2d01abb43b..bf2b58b127 100644 --- a/services/settings/pkg/command/root.go +++ b/services/settings/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-settings command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "settings", Short: "Provide settings and permissions for OpenCloud", }) diff --git a/services/sharing/pkg/command/root.go b/services/sharing/pkg/command/root.go index bf7a143fdc..e9c6bcf4a8 100644 --- a/services/sharing/pkg/command/root.go +++ b/services/sharing/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the sharing command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "sharing", Short: "Provide sharing for OpenCloud", }) diff --git a/services/sse/pkg/command/root.go b/services/sse/pkg/command/root.go index 82b90791e9..aacf53d753 100644 --- a/services/sse/pkg/command/root.go +++ b/services/sse/pkg/command/root.go @@ -20,7 +20,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the sse command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "sse", Short: "Serve sse for OpenCloud", }) diff --git a/services/storage-publiclink/pkg/command/root.go b/services/storage-publiclink/pkg/command/root.go index 977079f9cd..9008c52ece 100644 --- a/services/storage-publiclink/pkg/command/root.go +++ b/services/storage-publiclink/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the storage-publiclink command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "storage-publiclink", Short: "Provide publiclink storage for OpenCloud", }) diff --git a/services/storage-shares/pkg/command/root.go b/services/storage-shares/pkg/command/root.go index 6c46190e71..f3d00086fc 100644 --- a/services/storage-shares/pkg/command/root.go +++ b/services/storage-shares/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the storage-shares command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "storage-shares", Short: "Provide a virtual storage for shares in OpenCloud", }) diff --git a/services/storage-system/pkg/command/root.go b/services/storage-system/pkg/command/root.go index f81e980ef4..f36a7186ec 100644 --- a/services/storage-system/pkg/command/root.go +++ b/services/storage-system/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the storage-system command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "storage-system", Short: "Provide system storage for OpenCloud", }) diff --git a/services/storage-users/pkg/command/root.go b/services/storage-users/pkg/command/root.go index 1722ec679b..a0c2022927 100644 --- a/services/storage-users/pkg/command/root.go +++ b/services/storage-users/pkg/command/root.go @@ -27,7 +27,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-storage-users command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "storage-users", Short: "Provide storage for users and projects in OpenCloud", }) diff --git a/services/thumbnails/pkg/command/root.go b/services/thumbnails/pkg/command/root.go index 7bbf9b7fd6..14b0b83432 100644 --- a/services/thumbnails/pkg/command/root.go +++ b/services/thumbnails/pkg/command/root.go @@ -24,7 +24,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-thumbnails command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "thumbnails", Short: "Example usage", }) diff --git a/services/userlog/pkg/command/root.go b/services/userlog/pkg/command/root.go index bf07f7356e..0bee5dcd78 100644 --- a/services/userlog/pkg/command/root.go +++ b/services/userlog/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the userlog command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "userlog", Short: "starts userlog service", }) diff --git a/services/users/pkg/command/root.go b/services/users/pkg/command/root.go index 0cb36cae53..9bf352f980 100644 --- a/services/users/pkg/command/root.go +++ b/services/users/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-user command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "user", Short: "Provide users for OpenCloud", }) diff --git a/services/web/pkg/command/root.go b/services/web/pkg/command/root.go index c754c40abb..504cd5e9ca 100644 --- a/services/web/pkg/command/root.go +++ b/services/web/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the web command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "web", Short: "Serve Web for OpenCloud", }) diff --git a/services/webdav/pkg/command/root.go b/services/webdav/pkg/command/root.go index cb781c75ff..104f7e7d79 100644 --- a/services/webdav/pkg/command/root.go +++ b/services/webdav/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud-webdav command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "webdav", Short: "Serve WebDAV API for OpenCloud", }) diff --git a/services/webfinger/pkg/command/root.go b/services/webfinger/pkg/command/root.go index 6280793091..a5f9867d42 100644 --- a/services/webfinger/pkg/command/root.go +++ b/services/webfinger/pkg/command/root.go @@ -25,7 +25,7 @@ func GetCommands(cfg *config.Config) []*cobra.Command { // Execute is the entry point for the opencloud webfinger command. func Execute(cfg *config.Config) error { - app := clihelper.DefaultAppCobra(&cobra.Command{ + app := clihelper.DefaultApp(&cobra.Command{ Use: "webfinger", Short: "Serve webfinger API for OpenCloud", })