mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-06 04:09:40 -06:00
26 lines
696 B
Go
26 lines
696 B
Go
package command
|
|
|
|
import (
|
|
"github.com/owncloud/ocis/extensions/storage-shares/pkg/command"
|
|
"github.com/owncloud/ocis/ocis-pkg/config"
|
|
"github.com/owncloud/ocis/ocis/pkg/register"
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// StorageSharesCommand is the entrypoint for the storage-shares command.
|
|
func StorageSharesCommand(cfg *config.Config) *cli.Command {
|
|
return &cli.Command{
|
|
Name: "storage-shares",
|
|
Usage: "start storage and data provider for shares jail",
|
|
Category: "extensions",
|
|
Action: func(c *cli.Context) error {
|
|
origCmd := command.StorageShares(cfg.StorageShares)
|
|
return handleOriginalAction(c, origCmd)
|
|
},
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
register.AddCommand(StorageSharesCommand)
|
|
}
|