enhancement: add sse service skeleton

This commit is contained in:
Florian Schade
2023-08-29 13:59:39 +02:00
committed by jkoberg
parent 33f60b3508
commit 96292ba4b6
20 changed files with 520 additions and 5 deletions
+27
View File
@@ -0,0 +1,27 @@
package command
import (
"fmt"
"github.com/owncloud/ocis/v2/ocis-pkg/version"
"github.com/urfave/cli/v2"
"github.com/owncloud/ocis/v2/services/sse/pkg/config"
)
// Version prints the service versions of all running instances.
func Version(cfg *config.Config) *cli.Command {
return &cli.Command{
Name: "version",
Usage: "print the version of this binary and the running service instances",
Category: "info",
Action: func(c *cli.Context) error {
fmt.Println("Version: " + version.GetString())
fmt.Printf("Compiled: %s\n", version.Compiled())
fmt.Println("")
return nil
},
}
}