{
  "id": "organize-tool",
  "name": "organize",
  "homepage": "https://github.com/tfeldmann/organize",
  "description": "The file management automation tool.",
  "executables": [
    "organize"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/organize/config.yaml"
    ],
    "exclude": [],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Run organize",
    "description": "Run or simulate organize rules from a config. Simulate first with Simulate. Config editing commands are outside this form.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": false,
      "short_attached": true,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "sim"
        ],
        "label": "Simulate organizing",
        "description": "Show what would happen without touching files.",
        "source": [
          {
            "id": "help",
            "kind": "help",
            "url": "https://github.com/tfeldmann/organize",
            "evidence": "  sim        Simulate organizing your files.\n  <config>                        A config name or path to a config file\n  -W --working-dir <dir>          The working directory\n  -T --tags <tags>                Tags to run (eg. \"initial,release\")\n  -S --skip-tags <tags>           Tags to skip\n"
          }
        ],
        "field": [
          {
            "id": "working_dir",
            "label": "Working directory",
            "type": "path",
            "option": [
              "--working-dir",
              "-W"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "help"
            ]
          },
          {
            "id": "tags",
            "label": "Tags to run",
            "description": "Comma-separated, e.g. initial,release.",
            "type": "string",
            "option": [
              "--tags",
              "-T"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "skip_tags",
            "label": "Tags to skip",
            "type": "string",
            "option": [
              "--skip-tags",
              "-S"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "config",
            "label": "Config name or path",
            "type": "string",
            "position": 0,
            "sources": [
              "help"
            ]
          }
        ],
        "task": [
          {
            "id": "sim",
            "label": "Simulate",
            "fields": [
              "config",
              "working_dir",
              "tags",
              "skip_tags"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config",
              "working_dir",
              "tags",
              "skip_tags"
            ]
          }
        ]
      },
      {
        "path": [
          "run"
        ],
        "label": "Organize files",
        "description": "Apply the rules and actually move, rename or delete files. Simulate first.",
        "source": [
          {
            "id": "help",
            "kind": "help",
            "url": "https://github.com/tfeldmann/organize",
            "evidence": "  run        Organize your files.\n  <config>                        A config name or path to a config file\n  -W --working-dir <dir>          The working directory\n  -T --tags <tags>                Tags to run (eg. \"initial,release\")\n  -S --skip-tags <tags>           Tags to skip\n"
          }
        ],
        "field": [
          {
            "id": "working_dir",
            "label": "Working directory",
            "type": "path",
            "option": [
              "--working-dir",
              "-W"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "effect": "overwrite",
            "sources": [
              "help"
            ]
          },
          {
            "id": "tags",
            "label": "Tags to run",
            "type": "string",
            "option": [
              "--tags",
              "-T"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "skip_tags",
            "label": "Tags to skip",
            "type": "string",
            "option": [
              "--skip-tags",
              "-S"
            ],
            "sources": [
              "help"
            ]
          },
          {
            "id": "config",
            "label": "Config name or path",
            "type": "string",
            "position": 0,
            "sources": [
              "help"
            ]
          }
        ],
        "task": [
          {
            "id": "run",
            "label": "Run",
            "fields": [
              "config",
              "working_dir",
              "tags",
              "skip_tags"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config",
              "working_dir",
              "tags",
              "skip_tags"
            ]
          }
        ]
      }
    ]
  }
}
