{
  "id": "argo",
  "name": "Argo Workflows CLI",
  "description": "Command-line client for Argo Workflows.",
  "homepage": "https://argo-workflows.readthedocs.io",
  "executables": [
    "argo"
  ],
  "commands": {
    "format": 1,
    "label": "Argo Workflows",
    "description": "Submit, list, get and delete workflows. Authentication flags are left out.",
    "quality": "ai-draft",
    "base": "fig:argo",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/argo.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "namespace",
        "label": "Namespace",
        "type": "string",
        "option": [
          "--namespace",
          "-n"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "namespace"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "submit"
        ],
        "label": "Submit workflow",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/argo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "files",
            "label": "Workflow files",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "parameter",
            "label": "Parameter (name=value)",
            "type": "string",
            "option": [
              "--parameter",
              "-p"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "name",
            "label": "Workflow name",
            "type": "string",
            "option": [
              "--name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "wait",
            "label": "Wait for completion",
            "type": "boolean",
            "option": [
              "--wait",
              "-w"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "watch",
            "label": "Watch",
            "type": "boolean",
            "option": [
              "--watch"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "log",
            "label": "Stream logs",
            "type": "boolean",
            "option": [
              "--log"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Client-side dry run",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "submit",
            "label": "Submit and watch",
            "fields": [
              "files",
              "parameter",
              "watch"
            ],
            "required": [
              "files"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "files",
              "parameter",
              "name",
              "wait",
              "watch",
              "log",
              "dry_run"
            ]
          }
        ]
      },
      {
        "path": [
          "list"
        ],
        "label": "List workflows",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/argo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "all_namespaces",
            "label": "All namespaces",
            "type": "boolean",
            "option": [
              "--all-namespaces",
              "-A"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "running",
            "label": "Running only",
            "type": "boolean",
            "option": [
              "--running"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "completed",
            "label": "Completed only",
            "type": "boolean",
            "option": [
              "--completed"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output format",
            "type": "enum",
            "option": [
              "--output",
              "-o"
            ],
            "choices": [
              {
                "value": "name",
                "label": "Name"
              },
              {
                "value": "wide",
                "label": "Wide"
              },
              {
                "value": "yaml",
                "label": "YAML"
              },
              {
                "value": "json",
                "label": "JSON"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "status",
            "label": "Status filter",
            "type": "string",
            "option": [
              "--status"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "running",
            "label": "List running",
            "fields": [
              "running"
            ],
            "required": [
              "running"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "all_namespaces",
              "running",
              "completed",
              "output",
              "status"
            ]
          }
        ]
      },
      {
        "path": [
          "get"
        ],
        "label": "Get workflow",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/argo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "workflow",
            "label": "Workflow",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "output",
            "label": "Output format",
            "type": "enum",
            "option": [
              "--output",
              "-o"
            ],
            "choices": [
              {
                "value": "json",
                "label": "JSON"
              },
              {
                "value": "yaml",
                "label": "YAML"
              },
              {
                "value": "short",
                "label": "Short"
              },
              {
                "value": "wide",
                "label": "Wide"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "get",
            "label": "Get workflow",
            "fields": [
              "workflow",
              "output"
            ],
            "required": [
              "workflow"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "workflow",
              "output"
            ]
          }
        ]
      },
      {
        "path": [
          "delete"
        ],
        "label": "Delete workflows",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/argo.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "workflow",
            "label": "Workflows",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "completed",
            "label": "Completed workflows",
            "type": "boolean",
            "option": [
              "--completed"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "older",
            "label": "Older than",
            "type": "string",
            "option": [
              "--older"
            ],
            "description": "Duration such as 10m, 3h or 1d.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview deleting completed",
            "fields": [
              "completed",
              "dry_run"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "workflow",
              "completed",
              "older",
              "dry_run"
            ]
          }
        ]
      }
    ]
  }
}
