Files
scaffold/tests/test_multiword_subcmd.json
ZencacheandClaude Opus 4.6 e20c7b1203 v2.6.6: auto-save crash recovery, multi-word subcommands, spinner/status fixes
Added:
- Form auto-save & crash recovery — 30s periodic save to temp file,
  recovery prompt on next launch, immediate save on first field change
- Multi-word subcommand names — "role install", "compose up" split into
  separate command tokens; preview colorizer handles each part;
  validation rejects whitespace issues and duplicates
- Test schema: tests/test_multiword_subcmd.json

Fixed:
- Repeat spinner clipping (REPEAT_SPIN_WIDTH 60→75px)
- Required field status auto-clearing after 3 seconds (now persistent)
- Test suites hanging on stale recovery files (global QMessageBox patch)

All 5 test suites pass: 891/891 assertions, 0 failures.
All 11 tool/test schemas validate with zero errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 00:54:13 -04:00

183 lines
4.8 KiB
JSON

{
"tool": "Multi-Word Subcommand Test",
"binary": "echo",
"description": "Test schema for multi-word subcommand names.",
"elevated": null,
"subcommands": [
{
"name": "role install",
"description": "Install a role from Galaxy",
"arguments": [
{
"name": "Force",
"flag": "--force",
"short_flag": "-f",
"type": "boolean",
"description": "Force overwrite of existing role",
"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": "Roles Path",
"flag": "--roles-path",
"short_flag": "-p",
"type": "directory",
"description": "Path to the directory containing roles",
"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": "Role Name",
"flag": "ROLE",
"short_flag": null,
"type": "string",
"description": "Role to install (user.role format)",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": ["geerlingguy.docker", "geerlingguy.nginx"],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
},
{
"name": "role remove",
"description": "Remove an installed role",
"arguments": [
{
"name": "Role Name",
"flag": "ROLE",
"short_flag": null,
"type": "string",
"description": "Role to remove",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": null,
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": true
}
]
},
{
"name": "collection install",
"description": "Install a collection from Galaxy",
"arguments": [
{
"name": "Force",
"flag": "--force",
"short_flag": null,
"type": "boolean",
"description": "Force overwrite of existing collection",
"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": "Collection Name",
"flag": "COLLECTION",
"short_flag": null,
"type": "string",
"description": "Collection to install (namespace.collection format)",
"required": true,
"default": null,
"choices": null,
"group": null,
"depends_on": null,
"repeatable": false,
"separator": "space",
"positional": true,
"validation": null,
"examples": ["community.general", "ansible.posix"],
"display_group": null,
"min": null,
"max": null,
"deprecated": null,
"dangerous": false
}
]
}
],
"arguments": [
{
"name": "Verbose",
"flag": "--verbose",
"short_flag": "-v",
"type": "boolean",
"description": "Increase verbosity",
"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
}
]
}