25 lines
522 B
Go
25 lines
522 B
Go
package cli
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var validateCmd = &cobra.Command{
|
|
Use: "validate",
|
|
Short: "Validate the taxonomy YAML file",
|
|
Long: `Parses the taxonomy YAML file and reports any structural errors
|
|
without starting the simulation engine.`,
|
|
RunE: runValidate,
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(validateCmd)
|
|
}
|
|
|
|
func runValidate(cmd *cobra.Command, args []string) error {
|
|
fmt.Println("> Validating taxonomy configuration...")
|
|
fmt.Println("> Validation not yet implemented.")
|
|
return nil
|
|
}
|