storage-metadata -> storage-system
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
@@ -3,31 +3,31 @@ package command
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/owncloud/ocis/extensions/storage-metadata/pkg/command"
|
||||
"github.com/owncloud/ocis/extensions/storage-system/pkg/command"
|
||||
"github.com/owncloud/ocis/ocis-pkg/config"
|
||||
"github.com/owncloud/ocis/ocis-pkg/config/parser"
|
||||
"github.com/owncloud/ocis/ocis/pkg/register"
|
||||
"github.com/urfave/cli/v2"
|
||||
)
|
||||
|
||||
// StorageMetadataCommand is the entrypoint for the StorageMetadata command.
|
||||
func StorageMetadataCommand(cfg *config.Config) *cli.Command {
|
||||
// StorageSystemCommand is the entrypoint for the StorageSystem command.
|
||||
func StorageSystemCommand(cfg *config.Config) *cli.Command {
|
||||
return &cli.Command{
|
||||
Name: cfg.StorageMetadata.Service.Name,
|
||||
Usage: subcommandDescription(cfg.StorageMetadata.Service.Name),
|
||||
Name: cfg.StorageSystem.Service.Name,
|
||||
Usage: subcommandDescription(cfg.StorageSystem.Service.Name),
|
||||
Category: "extensions",
|
||||
Before: func(c *cli.Context) error {
|
||||
if err := parser.ParseConfig(cfg); err != nil {
|
||||
fmt.Printf("%v", err)
|
||||
return err
|
||||
}
|
||||
cfg.StorageMetadata.Commons = cfg.Commons
|
||||
cfg.StorageSystem.Commons = cfg.Commons
|
||||
return nil
|
||||
},
|
||||
Subcommands: command.GetCommands(cfg.StorageMetadata),
|
||||
Subcommands: command.GetCommands(cfg.StorageSystem),
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
register.AddCommand(StorageMetadataCommand)
|
||||
register.AddCommand(StorageSystemCommand)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user