spatial-db/main.go

31 lines
621 B
Go
Raw Normal View History

package main
import (
"git.nicholasnovak.io/nnovak/spatial-db/connector"
"git.nicholasnovak.io/nnovak/spatial-db/loading"
"git.nicholasnovak.io/nnovak/spatial-db/visualization"
"github.com/spf13/cobra"
)
func main() {
rootCmd := cobra.Command{
Use: "spatialdb",
}
rootCmd.AddCommand(visualization.VisualizeCommand)
rootCmd.AddCommand(connector.ProxyPortCommand)
loadCmd := &cobra.Command{
Use: "load",
Short: "Loads save files into the database's format",
}
loadCmd.AddCommand(loading.LoadSaveDirCommand)
rootCmd.AddCommand(loadCmd)
if err := rootCmd.Execute(); err != nil {
panic(err)
}
}