{
  "id": "cicada",
  "name": "Cicada",
  "description": "Write CI/CD pipelines in TypeScript.",
  "executables": [
    "cicada"
  ],
  "commands": {
    "format": 1,
    "label": "Cicada pipelines",
    "description": "Run or create Cicada pipelines.",
    "quality": "ai-draft",
    "base": "fig:cicada",
    "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/cicada.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "run"
        ],
        "label": "Run a pipeline",
        "description": "Run a pipeline locally. Custom Dockerfiles and secrets JSON are left out.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cicada.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "pipeline",
            "label": "Pipeline",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true,
              "transforms": [
                "dot_slash_if_dash"
              ]
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "secret",
            "label": "Secrets",
            "description": "Names of environment variables to expose as secrets.",
            "type": "string",
            "option": [
              "--secret",
              "-s"
            ],
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dotenv",
            "label": ".env file",
            "type": "path",
            "option": [
              "--dotenv"
            ],
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "oci_backend",
            "label": "OCI backend",
            "type": "string",
            "option": [
              "--oci-backend"
            ],
            "suggestions": [
              {
                "value": "docker",
                "label": "Docker"
              },
              {
                "value": "podman",
                "label": "Podman"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_dotenv",
            "label": "Skip .env file",
            "type": "boolean",
            "option": [
              "--no-dotenv"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_cache",
            "label": "Disable caching",
            "type": "boolean",
            "option": [
              "--no-cache"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run",
            "fields": [
              "pipeline",
              "secret",
              "dotenv"
            ],
            "required": []
          },
          {
            "id": "run_fresh",
            "label": "Run without cache",
            "fields": [
              "pipeline",
              "no_cache"
            ],
            "required": [],
            "set": {
              "no_cache": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "pipeline",
              "secret",
              "dotenv"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "oci_backend",
              "no_dotenv",
              "no_cache"
            ]
          }
        ]
      },
      {
        "path": [
          "new"
        ],
        "label": "Create a pipeline",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/cicada.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "pipeline",
            "label": "Pipeline name",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "new",
            "label": "Create",
            "fields": [
              "pipeline"
            ],
            "required": [
              "pipeline"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "pipeline"
            ]
          }
        ]
      }
    ]
  }
}
