{
  "id": "scarb",
  "name": "Scarb",
  "description": "Build toolchain and package manager for Cairo and Starknet.",
  "homepage": "https://docs.swmansion.com/scarb/",
  "executables": [
    "scarb"
  ],
  "commands": {
    "format": 1,
    "label": "Scarb",
    "description": "Create, build, test and add dependencies. fmt, run, cache and metadata are not covered.",
    "quality": "ai-draft",
    "base": "fig:scarb",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "src",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "new"
        ],
        "label": "Create a package",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "path",
            "label": "Path",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "name",
            "label": "Package name",
            "type": "string",
            "option": [
              "--name"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "no_vcs",
            "label": "No Git repository",
            "type": "boolean",
            "option": [
              "--no-vcs"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "new",
            "label": "New package",
            "fields": [
              "path",
              "name",
              "no_vcs"
            ],
            "required": [
              "path"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "path",
              "name",
              "no_vcs"
            ]
          }
        ]
      },
      {
        "path": [
          "build"
        ],
        "label": "Build",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "package",
            "label": "Package",
            "type": "string",
            "option": [
              "--package",
              "-p"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "count",
            "option": [
              "--verbose",
              "-v"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "count",
            "option": [
              "--quiet",
              "-q"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "workspace",
            "label": "Whole workspace",
            "type": "boolean",
            "option": [
              "--workspace",
              "-w"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build",
            "fields": [
              "package",
              "workspace"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "package",
              "workspace"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "verbose",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "test"
        ],
        "label": "Run tests",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "filter",
            "label": "Test filter",
            "type": "string",
            "option": [
              "--filter",
              "-f"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "ignored",
            "label": "Only ignored tests",
            "type": "boolean",
            "option": [
              "--ignored"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "include_ignored",
            "label": "Include ignored tests",
            "type": "boolean",
            "option": [
              "--include-ignored"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "workspace",
            "label": "Whole workspace",
            "type": "boolean",
            "option": [
              "--workspace",
              "-w"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "package",
            "label": "Package",
            "type": "string",
            "option": [
              "--package",
              "-p"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "count",
            "option": [
              "--verbose",
              "-v"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "count",
            "option": [
              "--quiet",
              "-q"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "test",
            "label": "Run tests",
            "fields": [
              "filter",
              "package",
              "workspace"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "filter",
              "workspace",
              "package"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "ignored",
              "include_ignored",
              "verbose",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "add"
        ],
        "label": "Add a dependency",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/scarb.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "dep",
            "label": "Dependency",
            "type": "string",
            "position": 0,
            "sources": [
              "src"
            ]
          },
          {
            "id": "package",
            "label": "Package",
            "type": "string",
            "option": [
              "--package",
              "-p"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "path",
            "label": "Local path",
            "type": "path",
            "option": [
              "--path"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "git",
            "label": "Git URI",
            "type": "string",
            "option": [
              "--git"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "branch",
            "label": "Git branch",
            "type": "string",
            "option": [
              "--branch"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "tag",
            "label": "Git tag",
            "type": "string",
            "option": [
              "--tag"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "rev",
            "label": "Git revision",
            "type": "string",
            "option": [
              "--rev"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "dry_run",
            "label": "Dry run",
            "type": "boolean",
            "option": [
              "--dry-run"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "add",
            "label": "Add",
            "fields": [
              "dep",
              "package",
              "dry_run"
            ],
            "required": [
              "dep"
            ]
          },
          {
            "id": "git",
            "label": "Add from Git",
            "fields": [
              "dep",
              "git",
              "branch",
              "tag"
            ],
            "required": [
              "dep",
              "git"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "dep",
              "package",
              "dry_run"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "git",
              "branch",
              "tag",
              "rev",
              "path"
            ]
          }
        ]
      }
    ]
  }
}
