{
  "id": "shadcn-ui",
  "name": "shadcn/ui CLI",
  "description": "Add shadcn/ui components to a project.",
  "executables": [
    "shadcn-ui"
  ],
  "commands": {
    "format": 1,
    "label": "shadcn-ui",
    "description": "Initialize a project or add components. The diff subcommand is left out.",
    "quality": "ai-draft",
    "base": "fig:shadcn-ui",
    "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/shadcn-ui.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "init"
        ],
        "label": "Initialize project",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/shadcn-ui.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "yes",
            "label": "Skip confirmation",
            "type": "boolean",
            "option": [
              "-y",
              "--yes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cwd",
            "label": "Working directory",
            "type": "path",
            "option": [
              "-c",
              "--cwd"
            ],
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Initialize",
            "set": {
              "yes": [
                true
              ]
            },
            "fields": [
              "yes",
              "cwd"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "yes",
              "cwd"
            ]
          }
        ]
      },
      {
        "path": [
          "add"
        ],
        "label": "Add components",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/shadcn-ui.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "components",
            "label": "Components",
            "description": "e.g. button dialog",
            "type": "string",
            "position": 0,
            "multiple": true,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yes",
            "label": "Skip confirmation",
            "type": "boolean",
            "option": [
              "-y",
              "--yes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "overwrite",
            "label": "Overwrite existing",
            "type": "boolean",
            "option": [
              "-o",
              "--overwrite"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cwd",
            "label": "Working directory",
            "type": "path",
            "option": [
              "-c",
              "--cwd"
            ],
            "path": {
              "kind": "directory",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "path",
            "label": "Target path",
            "type": "string",
            "option": [
              "-p",
              "--path"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "add",
            "label": "Add components",
            "fields": [
              "components",
              "yes",
              "overwrite"
            ],
            "required": [
              "components"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "components",
              "yes",
              "overwrite"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "cwd",
              "path"
            ]
          }
        ]
      }
    ]
  }
}
