Help us shape the future of Go! Take the 2026 Go Developer Survey

validate

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

DEPRECATED: This package is deprecated. Use parable-bloom/tools/level-builder instead. See: parable-bloom/tools/level-builder/cmd/validate/validate.go

Index

Constants

This section is empty.

Variables

View Source
var LevelValidateCmd = &cobra.Command{
	Use:   "level-validate",
	Short: "Validate game levels for solvability",
	Long: `Validate game levels to ensure they are properly formatted and solvable.
This command uses the Parable Bloom level solver to verify that levels can be completed.`,
	Run: func(cmd *cobra.Command, _args []string) {
		isVerbose := utils.IsVerbose(cmd)
		log.Start("Validating game levels")

		file, _ := cmd.Flags().GetString("file")
		directory, _ := cmd.Flags().GetString("directory")
		checkSolvability, _ := cmd.Flags().GetBool("check-solvability")
		strict, _ := cmd.Flags().GetBool("strict")
		dryRun, _ := cmd.Flags().GetBool("dry-run")
		showWarnings, _ := cmd.Flags().GetBool("warnings")

		if file == "" && directory == "" {
			directory = "assets/levels"
		}

		if file != "" {
			validateSingleFile(file, checkSolvability, strict, dryRun, showWarnings, isVerbose)
		} else {
			validateDirectory(directory, checkSolvability, strict, dryRun, showWarnings, isVerbose)
		}
	},
}

LevelValidateCmd represents the 'parable-bloom level-validate' command for validating game levels. It checks that levels are properly formatted and solvable using the game's solver.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL