Normalize fetched IWC workflows into a consistent representation for structural comparison, and surface the nearest exemplar forward as a cleaned gxformat2 view (sibling file plus inline excerpt) for the downstream template Mold.
Preview json
{
"type": "cli-command",
"tool": "gxwf",
"command": "convert",
"summary": "Convert a Galaxy workflow between native (.ga) and format2 (.gxwf.yml) representations.",
"source_path": "content/cli/gxwf/convert.md",
"source_revision": 2,
"package": "@galaxy-tool-util/cli",
"description": "Convert between native (.ga) and format2 (.gxwf.yml) formats",
"synopsis": "gxwf convert [options] <file>",
"args": [
{
"raw": "file",
"name": "file",
"required": true,
"variadic": false,
"description": "Workflow file (.ga, .gxwf.yml)"
}
],
"options": [
{
"flags": "--to <format>",
"name": "to",
"description": "Target format: native or format2 (infers opposite by default)",
"takesArgument": true,
"argumentPlaceholder": "<format>",
"optionalArgument": false,
"negatable": false
},
{
"flags": "--output <file>",
"name": "output",
"description": "Write result to file (default: stdout)",
"takesArgument": true,
"argumentPlaceholder": "<file>",
"optionalArgument": false,
"negatable": false
},
{
"flags": "--compact",
"name": "compact",
"description": "Omit position info in format2 output",
"takesArgument": false,
"optionalArgument": false,
"negatable": false
},
{
"flags": "--json",
"name": "json",
"description": "Force JSON output",
"takesArgument": false,
"optionalArgument": false,
"negatable": false
},
{
"flags": "--yaml",
"name": "yaml",
"description": "Force YAML output",
"takesArgument": false,
"optionalArgument": false,
"negatable": false
},
{
"flags": "--format <fmt>",
"name": "format",
"description": "Force source format (auto-detected by default)",
"takesArgument": true,
"argumentPlaceholder": "<fmt>",
"optionalArgument": false,
"negatable": false
},
{
"flags": "--stateful",
"name": "stateful",
"description": "Use cached tool definitions for schema-aware state re-encoding",
"takesArgument": false,
"optionalArgument": false,
"negatable": false
},
{
"flags": "--cache-dir <dir>",
"name": "cacheDir",
"description": "Tool cache directory (for --stateful)",
"takesArgument": tru
...