mirror of
https://github.com/kevwillow/scaffold.git
synced 2026-10-20 08:37:34 +02:00
447 lines
12 KiB
JSON
447 lines
12 KiB
JSON
{
|
|
"_format": "scaffold_schema",
|
|
"tool": "example",
|
|
"binary": "example",
|
|
"description": "Template schema demonstrating every Scaffold feature. Not a real tool.",
|
|
"elevated": null,
|
|
"subcommands": [
|
|
{
|
|
"name": "convert",
|
|
"description": "Subcommand demonstrating enum and file fields in subcommand scope",
|
|
"arguments": [
|
|
{
|
|
"name": "Format",
|
|
"flag": "--format",
|
|
"short_flag": "-f",
|
|
"type": "enum",
|
|
"description": "Output format — demonstrates enum reused in subcommand scope",
|
|
"required": true,
|
|
"default": "json",
|
|
"choices": [
|
|
"json",
|
|
"csv",
|
|
"xml",
|
|
"yaml"
|
|
],
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "equals",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Source File",
|
|
"flag": "--source",
|
|
"short_flag": null,
|
|
"type": "file",
|
|
"description": "Input file to convert",
|
|
"required": true,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "analyze",
|
|
"description": "Subcommand demonstrating integer and boolean fields",
|
|
"arguments": [
|
|
{
|
|
"name": "Depth",
|
|
"flag": "--depth",
|
|
"short_flag": "-d",
|
|
"type": "integer",
|
|
"description": "Analysis depth level",
|
|
"required": false,
|
|
"default": 3,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": 1,
|
|
"max": 10,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Recursive",
|
|
"flag": "--recursive",
|
|
"short_flag": "-r",
|
|
"type": "boolean",
|
|
"description": "Analyze nested structures recursively",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Pattern",
|
|
"flag": "--pattern",
|
|
"short_flag": null,
|
|
"type": "string",
|
|
"description": "Regex pattern to match during analysis",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": "--recursive",
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"arguments": [
|
|
{
|
|
"name": "Verbose",
|
|
"flag": "--verbose",
|
|
"short_flag": "-v",
|
|
"type": "boolean",
|
|
"description": "Example boolean flag — emits the flag when checked, nothing when unchecked",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": true,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Input Name",
|
|
"flag": "INPUT",
|
|
"short_flag": null,
|
|
"type": "string",
|
|
"description": "Example positional required string — the value is appended without a flag prefix",
|
|
"required": true,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": true,
|
|
"validation": null,
|
|
"examples": [
|
|
"hello-world",
|
|
"my-project",
|
|
"test-input"
|
|
],
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Label",
|
|
"flag": "--label",
|
|
"short_flag": "-l",
|
|
"type": "string",
|
|
"description": "Example string field with a default value and example suggestions rendered as a combobox dropdown",
|
|
"required": false,
|
|
"default": "default-label",
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": [
|
|
"alpha",
|
|
"beta",
|
|
"gamma",
|
|
"release"
|
|
],
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Retries",
|
|
"flag": "--retries",
|
|
"short_flag": null,
|
|
"type": "integer",
|
|
"description": "Example integer field with min/max constraints on the spinner",
|
|
"required": false,
|
|
"default": 3,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": "Numeric Options",
|
|
"min": 0,
|
|
"max": 100,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Threshold",
|
|
"flag": "--threshold",
|
|
"short_flag": null,
|
|
"type": "float",
|
|
"description": "Example float field with min/max — two fields share this display_group to show visual grouping",
|
|
"required": false,
|
|
"default": 0.5,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "equals",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": "Numeric Options",
|
|
"min": 0.0,
|
|
"max": 1.0,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Mode",
|
|
"flag": "--mode",
|
|
"short_flag": "-m",
|
|
"type": "enum",
|
|
"description": "Example enum field with 5 options and a default value",
|
|
"required": false,
|
|
"default": "balanced",
|
|
"choices": [
|
|
"quiet",
|
|
"minimal",
|
|
"balanced",
|
|
"detailed",
|
|
"debug"
|
|
],
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Features",
|
|
"flag": "--features",
|
|
"short_flag": null,
|
|
"type": "multi_enum",
|
|
"description": "Example multi_enum field — multiple selections from a checkbox list",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": [
|
|
"logging",
|
|
"metrics",
|
|
"tracing",
|
|
"caching",
|
|
"compression",
|
|
"encryption"
|
|
],
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Config File",
|
|
"flag": "--config",
|
|
"short_flag": "-c",
|
|
"type": "file",
|
|
"description": "Example file field — opens a file browser dialog",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Output Directory",
|
|
"flag": "--output-dir",
|
|
"short_flag": null,
|
|
"type": "directory",
|
|
"description": "Example directory field — opens a directory browser dialog",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Notes",
|
|
"flag": "--notes",
|
|
"short_flag": null,
|
|
"type": "text",
|
|
"description": "Example text field — renders as a multiline text area for freeform input",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "API Token",
|
|
"flag": "--token",
|
|
"short_flag": null,
|
|
"type": "password",
|
|
"description": "Example password field — input is masked with a show/hide toggle",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "space",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Legacy Format",
|
|
"flag": "--legacy-format",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Example deprecated field — label renders with strikethrough styling",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": "Use --mode instead. This flag will be removed in a future version.",
|
|
"dangerous": false
|
|
},
|
|
{
|
|
"name": "Force Overwrite",
|
|
"flag": "--force",
|
|
"short_flag": null,
|
|
"type": "boolean",
|
|
"description": "Example dangerous field — label is prefixed with a warning symbol. Overwrites existing output without confirmation.",
|
|
"required": false,
|
|
"default": null,
|
|
"choices": null,
|
|
"group": null,
|
|
"depends_on": null,
|
|
"repeatable": false,
|
|
"separator": "none",
|
|
"positional": false,
|
|
"validation": null,
|
|
"examples": null,
|
|
"display_group": null,
|
|
"min": null,
|
|
"max": null,
|
|
"deprecated": null,
|
|
"dangerous": true
|
|
}
|
|
]
|
|
}
|