Skip to content

Commit

Permalink
clean up the new commands
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Apr 22, 2022
1 parent ab143c7 commit 1195f44
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 29 deletions.
3 changes: 0 additions & 3 deletions extensions/auth-basic/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ func AuthBasic(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "auth-basic",
Usage: "start authprovider for basic auth",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-auth-basic")
// },
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
logger := log.NewLogger(
Expand Down
3 changes: 0 additions & 3 deletions extensions/auth-bearer/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ func AuthBearer(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "auth-bearer",
Usage: "start authprovider for bearer auth",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-auth-bearer")
// },
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
logger := log.NewLogger(
Expand Down
3 changes: 0 additions & 3 deletions extensions/auth-machine/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ func AuthMachine(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "auth-machine",
Usage: "start authprovider for machine auth",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-auth-machine")
// },
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
logger := log.NewLogger(
Expand Down
1 change: 0 additions & 1 deletion extensions/frontend/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ func Frontend(cfg *config.Config) *cli.Command {
if err := loadUserAgent(c, cfg); err != nil {
return err
}
// return ParseConfig(c, cfg, "storage-frontend")
return nil
},
Action: func(c *cli.Context) error {
Expand Down
4 changes: 0 additions & 4 deletions extensions/gateway/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ func Gateway(cfg *config.Config) *cli.Command {
Name: "gateway",
Usage: "start gateway",
Before: func(c *cli.Context) error {
// if err := ParseConfig(c, cfg, "storage-gateway"); err != nil {
// return err
// }

if cfg.DataGatewayPublicURL == "" {
cfg.DataGatewayPublicURL = strings.TrimRight(cfg.FrontendPublicURL, "/") + "/data"
}
Expand Down
3 changes: 0 additions & 3 deletions extensions/group/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ func Groups(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "groups",
Usage: "start groups service",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-groups")
// },
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
logger := log.NewLogger(
Expand Down
1 change: 0 additions & 1 deletion extensions/ocdav/pkg/command/ocdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ func OCDav(cfg *config.Config) *cli.Command {
if err := loadUserAgent(c, cfg); err != nil {
return err
}
// return ParseConfig(c, cfg, "ocdav")
return nil
},
Action: func(c *cli.Context) error {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ import (
// StoragePublicLink is the entrypoint for the reva-storage-public-link command.
func StoragePublicLink(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "storage-public-link",
Usage: "start storage-public-link service",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-public-link")
// },
Name: "storage-public-link",
Usage: "start storage-public-link service",
Category: "extensions",
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
Expand Down
3 changes: 0 additions & 3 deletions extensions/storage-shares/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ func StorageShares(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "storage-shares",
Usage: "start storage-shares service",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-shares")
// },
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
logger := log.NewLogger(
Expand Down
3 changes: 0 additions & 3 deletions extensions/storage-users/pkg/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ func StorageUsers(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "storage-users",
Usage: "start storage-users service",
// Before: func(c *cli.Context) error {
// return ParseConfig(c, cfg, "storage-userprovider")
// },
Action: func(c *cli.Context) error {
logCfg := cfg.Logging
logger := log.NewLogger(
Expand Down

0 comments on commit 1195f44

Please sign in to comment.