provisioning/schemas/commands_registry/schema.ncl

20 lines
590 B
Text
Raw Normal View History

# Command Registry Schema - Type Contracts
# Defines the structure and validation for all CLI commands
# Type contract for command records
# Open record type (...) allows partial records during merge, validates on output
{
CommandRecord = {
command | String,
aliases | Array String,
requires_daemon | Bool,
requires_services | Bool,
uses_cache | Bool,
requires_args | Bool,
help_category | String,
description | String,
daemon_target | std.enum.TagOrString | [| 'none, 'cli, 'orchestrator |],
..
},
}