{
  "id": "trash",
  "name": "trash",
  "description": "Command-line tool that moves files and folders to the macOS Trash.",
  "executables": [
    "trash"
  ],
  "platforms": [
    "macos"
  ],
  "commands": {
    "format": 1,
    "label": "Move to Trash",
    "description": "Move items to the Trash, list the Trash, or empty it. Empty requires the destructive flag and is off by default.",
    "quality": "ai-draft",
    "base": "fig:trash",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/trash.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "items",
        "label": "Items to trash",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose output",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "finder",
        "label": "Use Finder API",
        "description": "Move items via Finder so Put Back works.",
        "type": "boolean",
        "option": [
          "-F"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list",
        "label": "List Trash contents",
        "type": "boolean",
        "option": [
          "-l"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "empty",
        "label": "Empty the Trash",
        "type": "boolean",
        "option": [
          "-e"
        ],
        "effect": "delete",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "yes",
        "label": "Skip confirmation",
        "description": "Skips the prompt for -e and -s; permanent and immediate.",
        "type": "boolean",
        "option": [
          "-y"
        ],
        "effect": "delete",
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "trash",
        "label": "Move items to Trash",
        "fields": [
          "items",
          "verbose",
          "finder"
        ],
        "required": [
          "items"
        ]
      },
      {
        "id": "list",
        "label": "List Trash",
        "set": {
          "list": [
            true
          ]
        },
        "fields": [
          "list"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "items",
          "verbose",
          "finder"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "list",
          "empty",
          "yes"
        ]
      }
    ]
  }
}
