package cli

import (
	"fmt"

	"github.com/spf13/cobra"
)

var serveCmd = &cobra.Command{
	Use:   "serve",
	Short: "Start the Tongo Core simulation daemon",
	Long: `Starts the main simulation loop. Reads taxonomy data, connects to Valkey,
and begins generating live match events on a 2-second tick cycle.

The daemon runs until interrupted (SIGINT/SIGTERM).`,
	RunE: runServe,
}

func init() {
	rootCmd.AddCommand(serveCmd)
}

func runServe(cmd *cobra.Command, args []string) error {
	fmt.Println("> Subspace Comms Link initializing...")
	fmt.Println("> Tongo Core — Simulation Engine v0.1.0")
	fmt.Println("> Awaiting implementation. All onion modules scaffolded.")
	return nil
}
