Update files for new ocis naming

This commit is contained in:
Thomas Boerger
2019-09-05 12:06:03 +02:00
parent 251350ed1d
commit e807f497bf
16 changed files with 75 additions and 40 deletions

View File

@@ -4,17 +4,17 @@ import (
"os"
"strings"
"github.com/owncloud/reva-hyper/pkg/version"
"github.com/owncloud/ocis/pkg/version"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
// Root is the entry point for the reva-phoenix command.
// Root is the entry point for the ocis-phoenix command.
func Root() *cobra.Command {
cmd := &cobra.Command{
Use: "reva-hyper",
Use: "ocis",
Short: "ownCloud infinite scale stack",
Long: ``,
Version: version.String,
@@ -40,6 +40,8 @@ func Root() *cobra.Command {
viper.BindEnv("log.color", "HYPER_LOG_COLOR")
cmd.AddCommand(Phoenix())
cmd.AddCommand(Webdav())
cmd.AddCommand(Ocs())
cmd.AddCommand(Health())
return cmd
@@ -76,8 +78,8 @@ func setupLogger() {
func setupConfig() {
viper.SetConfigName("hyper")
viper.AddConfigPath("/etc/reva")
viper.AddConfigPath("$HOME/.reva")
viper.AddConfigPath("/etc/ocis")
viper.AddConfigPath("$HOME/.ocis")
viper.AddConfigPath("./config")
if err := viper.ReadInConfig(); err != nil {

15
pkg/command/ocs.go Normal file
View File

@@ -0,0 +1,15 @@
package command
import (
ocs "github.com/owncloud/ocis-ocs/pkg/command"
"github.com/spf13/cobra"
)
// Ocs is the entry point for the ocs command.
func Ocs() *cobra.Command {
cmd := ocs.Server()
cmd.Use = "ocs"
cmd.Short = "Start ocs server"
return cmd
}

View File

@@ -1,7 +1,7 @@
package command
import (
phoenix "github.com/owncloud/reva-phoenix/pkg/command"
phoenix "github.com/owncloud/ocis-phoenix/pkg/command"
"github.com/spf13/cobra"
)

15
pkg/command/webdav.go Normal file
View File

@@ -0,0 +1,15 @@
package command
import (
webdav "github.com/owncloud/ocis-webdav/pkg/command"
"github.com/spf13/cobra"
)
// Webdav is the entry point for the webdav command.
func Webdav() *cobra.Command {
cmd := webdav.Server()
cmd.Use = "webdav"
cmd.Short = "Start webdav server"
return cmd
}