MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / _validate_snapshot_name

Function _validate_snapshot_name

unity_cli/cli/commands/uitree.py:45–47  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

43
44
45def _validate_snapshot_name(name: str) -> None:
46 if not SNAPSHOT_NAME_RE.fullmatch(name):
47 raise typer.BadParameter(f"Invalid snapshot name: {name!r}. Use alphanumeric, dot, hyphen, underscore.")
48
49
50@uitree_app.command("dump")

Callers 2

snapshot_saveFunction · 0.85
snapshot_deleteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected