Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
30
cloud/maplepress-backend/cmd/root.go
Normal file
30
cloud/maplepress-backend/cmd/root.go
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
package cmd
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"codeberg.org/mapleopentech/monorepo/cloud/maplepress-backend/cmd/daemon"
|
||||
"codeberg.org/mapleopentech/monorepo/cloud/maplepress-backend/cmd/migrate"
|
||||
"codeberg.org/mapleopentech/monorepo/cloud/maplepress-backend/cmd/version"
|
||||
)
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "maplepress-backend",
|
||||
Short: "MaplePress Backend Service",
|
||||
Long: `MaplePress Backend - Clean Architecture with Wire DI and Cassandra multi-tenancy`,
|
||||
}
|
||||
|
||||
// Execute runs the root command
|
||||
func Execute() {
|
||||
rootCmd.AddCommand(daemon.DaemonCmd())
|
||||
rootCmd.AddCommand(migrate.MigrateCmd())
|
||||
rootCmd.AddCommand(version.VersionCmd())
|
||||
|
||||
if err := rootCmd.Execute(); err != nil {
|
||||
fmt.Fprintln(os.Stderr, err)
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue