{
  "id": "coda",
  "name": "Coda Packs CLI",
  "description": "Local development CLI bundled with the Coda Pack SDK.",
  "executables": [
    "coda"
  ],
  "commands": {
    "format": 1,
    "label": "Coda Packs",
    "description": "Build, validate and upload Coda Packs.",
    "quality": "ai-draft",
    "base": "fig:coda",
    "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/coda.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "build"
        ],
        "label": "Build a Pack bundle",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/coda.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "pack",
            "label": "Pack file",
            "type": "path",
            "position": 0,
            "min": 1,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true,
              "transforms": [
                "dot_slash_if_dash"
              ]
            },
            "description": "Path to the pack.ts file, e.g. src/pack.ts.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build",
            "fields": [
              "pack"
            ],
            "required": [
              "pack"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "pack"
            ]
          }
        ]
      },
      {
        "path": [
          "validate"
        ],
        "label": "Validate a Pack",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/coda.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "pack",
            "label": "Pack file",
            "type": "path",
            "position": 0,
            "min": 1,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true,
              "transforms": [
                "dot_slash_if_dash"
              ]
            },
            "description": "Path to the pack.ts file, e.g. src/pack.ts.",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "validate",
            "label": "Validate",
            "fields": [
              "pack"
            ],
            "required": [
              "pack"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "pack"
            ]
          }
        ]
      },
      {
        "path": [
          "upload"
        ],
        "label": "Upload a Pack version",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/coda.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "pack",
            "label": "Pack file",
            "type": "path",
            "position": 0,
            "min": 1,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true,
              "transforms": [
                "dot_slash_if_dash"
              ]
            },
            "description": "Path to the pack.ts file, e.g. src/pack.ts.",
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "upload",
            "label": "Upload",
            "fields": [
              "pack"
            ],
            "required": [
              "pack"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "pack"
            ]
          }
        ]
      },
      {
        "path": [
          "execute"
        ],
        "label": "Execute a formula",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/coda.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "pack",
            "label": "Pack file",
            "type": "path",
            "position": 0,
            "min": 1,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true,
              "transforms": [
                "dot_slash_if_dash"
              ]
            },
            "description": "Path to the pack.ts file, e.g. src/pack.ts.",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "formula",
            "label": "Formula name",
            "type": "string",
            "position": 1,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "params",
            "label": "Formula arguments",
            "type": "string",
            "position": 2,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "dynamic_url",
            "label": "Dynamic sync table URL",
            "type": "url",
            "option": [
              "--dynamicUrl"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "execute",
            "label": "Execute",
            "fields": [
              "pack",
              "formula",
              "params"
            ],
            "required": [
              "pack",
              "formula"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "pack",
              "formula",
              "params"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "dynamic_url"
            ]
          }
        ]
      }
    ]
  }
}
