{
  "id": "vdirsyncer",
  "name": "vdirsyncer",
  "homepage": "https://vdirsyncer.pimutils.org/",
  "description": "A command-line tool for synchronizing calendars and addressbooks between a variety of servers and the local filesystem.",
  "executables": [
    "vdirsyncer"
  ],
  "dotfiles": {
    "paths": [
      "~/.vdirsyncer/config",
      "~/.config/vdirsyncer/config"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": [
          "~/.vdirsyncer/config",
          "~/.config/vdirsyncer/config"
        ],
        "match": {
          "prefix": [
            "password"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Run vdirsyncer",
    "description": "Run a vdirsyncer command for a pair. Use discover first for new collections. Config editing is left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "docs",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/vdirsyncer/vdirsyncer.1.en.html",
        "revision": "vdirsyncer 0.21.0-1",
        "evidence": "vdirsyncer discover contacts\nvdirsyncer sync contacts\nvdirsyncer metasync to synchronize the color property\nvdirsyncer repair no longer changes \"unsafe\" UIDs\nNew global command line option --config, to specify an alternative\nUse --verbosity=DEBUG when including output from vdirsyncer.\nso you would use vdirsyncer sync doublecloud/mytest\n"
      }
    ],
    "field": [
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "docs"
        ]
      },
      {
        "id": "verbosity",
        "label": "Verbosity",
        "type": "string",
        "option": [
          "--verbosity"
        ],
        "suggestions": [
          {
            "value": "DEBUG",
            "label": "DEBUG"
          }
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "command",
        "label": "Command",
        "type": "enum",
        "position": 0,
        "choices": [
          {
            "value": "discover",
            "label": "discover"
          },
          {
            "value": "sync",
            "label": "sync"
          },
          {
            "value": "metasync",
            "label": "metasync"
          },
          {
            "value": "repair",
            "label": "repair"
          }
        ],
        "sources": [
          "docs"
        ]
      },
      {
        "id": "pair",
        "label": "Pair or pair/collection",
        "type": "string",
        "position": 1,
        "multiple": true,
        "sources": [
          "docs"
        ]
      }
    ],
    "task": [
      {
        "id": "discover",
        "label": "Discover collections",
        "fields": [
          "command",
          "pair"
        ],
        "required": [
          "command"
        ],
        "set": {
          "command": [
            "discover"
          ]
        }
      },
      {
        "id": "sync",
        "label": "Sync",
        "fields": [
          "command",
          "pair",
          "verbosity"
        ],
        "required": [
          "command"
        ],
        "set": {
          "command": [
            "sync"
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "command",
          "pair"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config",
          "verbosity"
        ]
      }
    ]
  }
}
