{
  "id": "chezmoi",
  "name": "chezmoi",
  "homepage": "https://www.chezmoi.io",
  "description": "Manage your dotfiles across multiple diverse machines, securely.",
  "icon": "theSVG:chezmoi",
  "executables": [
    "chezmoi"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/chezmoi/chezmoi.toml",
      "~/.config/chezmoi/chezmoi.yaml",
      "~/.config/chezmoi/chezmoi.json",
      "~/.config/chezmoi/chezmoi.jsonc"
    ],
    "exclude": [
      "[xdgCache]/chezmoi/"
    ],
    "secret": [],
    "self_sync": true,
    "machine_lines": [
      {
        "file": "~/.config/chezmoi/chezmoi.toml",
        "match": {
          "key_path": [
            "sourceDir",
            "destDir",
            "cacheDir",
            "workingTree",
            "persistentState"
          ]
        },
        "scope": "backup"
      },
      {
        "file": "~/.config/chezmoi/chezmoi.yaml",
        "match": {
          "key_path": [
            "sourceDir",
            "destDir",
            "cacheDir",
            "workingTree",
            "persistentState"
          ]
        },
        "scope": "backup"
      },
      {
        "file": "~/.config/chezmoi/chezmoi.json",
        "match": {
          "key_path": [
            "sourceDir",
            "destDir",
            "cacheDir",
            "workingTree",
            "persistentState"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "chezmoi",
    "description": "Apply and inspect your dotfiles. Adding, editing, secrets, encryption and state commands are left out.",
    "quality": "ai-draft",
    "base": "fig:chezmoi",
    "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/chezmoi.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "apply"
        ],
        "label": "Apply dotfiles",
        "description": "Update the destination directory to match the target state.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/chezmoi.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Targets",
            "description": "Limit to these destination paths; empty means everything managed.",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "include",
            "label": "Include types",
            "description": "Entry types to include, comma separated.",
            "type": "string",
            "option": [
              "--include",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exclude",
            "label": "Exclude types",
            "description": "Entry types to exclude, comma separated.",
            "type": "string",
            "option": [
              "--exclude",
              "-x"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "recursive",
            "label": "Recurse",
            "description": "Recurse into subdirectories.",
            "type": "boolean",
            "option": [
              "--recursive",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "init",
            "label": "Recreate config",
            "description": "Recreate config file from template.",
            "type": "boolean",
            "option": [
              "--init"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "apply",
            "label": "Apply everything",
            "fields": [
              "target"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "include",
              "exclude",
              "recursive",
              "init"
            ]
          }
        ]
      },
      {
        "path": [
          "diff"
        ],
        "label": "Show differences",
        "description": "Print the diff between the target state and the destination state.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/chezmoi.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Targets",
            "description": "Limit to these destination paths; empty means everything managed.",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "include",
            "label": "Include types",
            "description": "Entry types to include, comma separated.",
            "type": "string",
            "option": [
              "--include",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exclude",
            "label": "Exclude types",
            "description": "Entry types to exclude, comma separated.",
            "type": "string",
            "option": [
              "--exclude",
              "-x"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "recursive",
            "label": "Recurse",
            "description": "Recurse into subdirectories.",
            "type": "boolean",
            "option": [
              "--recursive",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "reverse",
            "label": "Reverse",
            "description": "Reverse the direction of the diff.",
            "type": "boolean",
            "option": [
              "--reverse"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "builtin",
            "label": "Builtin diff",
            "description": "Use the builtin diff.",
            "type": "boolean",
            "option": [
              "--use-builtin-diff"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "diff",
            "label": "Diff everything",
            "fields": [
              "target"
            ],
            "required": []
          },
          {
            "id": "reverse",
            "label": "Reverse diff",
            "set": {
              "reverse": [
                true
              ]
            },
            "fields": [
              "target",
              "reverse"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "reverse"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "include",
              "exclude",
              "recursive",
              "builtin"
            ]
          }
        ]
      },
      {
        "path": [
          "status"
        ],
        "label": "Status",
        "description": "Show the status of targets.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/chezmoi.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Targets",
            "description": "Limit to these destination paths; empty means everything managed.",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "include",
            "label": "Include types",
            "description": "Entry types to include, comma separated.",
            "type": "string",
            "option": [
              "--include",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "exclude",
            "label": "Exclude types",
            "description": "Entry types to exclude, comma separated.",
            "type": "string",
            "option": [
              "--exclude",
              "-x"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "recursive",
            "label": "Recurse",
            "description": "Recurse into subdirectories.",
            "type": "boolean",
            "option": [
              "--recursive",
              "-r"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "status",
            "label": "Status of everything",
            "fields": [
              "target"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "include",
              "exclude",
              "recursive"
            ]
          }
        ]
      },
      {
        "path": [
          "init"
        ],
        "label": "Initialise",
        "description": "Set up the source directory from a dotfiles repo. May also apply when --apply is set.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/chezmoi.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "source",
            "label": "Repository",
            "description": "Repo URL or GitHub user name.",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "apply",
            "label": "Apply afterwards",
            "description": "Update destination directory.",
            "type": "boolean",
            "option": [
              "--apply",
              "-a"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "branch",
            "label": "Branch",
            "description": "Set initial branch to checkout.",
            "type": "string",
            "option": [
              "--branch"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "depth",
            "label": "Clone depth",
            "description": "Create a shallow clone.",
            "type": "integer",
            "option": [
              "--depth",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ssh",
            "label": "Use SSH",
            "description": "Use ssh instead of https when guessing dotfile repo URL.",
            "type": "boolean",
            "option": [
              "--ssh"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "guess",
            "label": "Guess repo URL",
            "description": "Guess the repo URL.",
            "type": "boolean",
            "option": [
              "--guess-repo-url",
              "-g"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "one_shot",
            "label": "One-shot",
            "description": "Run in one-shot mode.",
            "type": "boolean",
            "option": [
              "--one-shot"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Clone only",
            "fields": [
              "source",
              "branch",
              "ssh"
            ],
            "required": [
              "source"
            ]
          },
          {
            "id": "apply",
            "label": "Clone and apply",
            "set": {
              "apply": [
                true
              ]
            },
            "fields": [
              "source",
              "apply",
              "branch",
              "ssh"
            ],
            "required": [
              "source"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "source",
              "apply",
              "branch",
              "ssh"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "depth",
              "guess",
              "one_shot"
            ]
          }
        ]
      }
    ]
  }
}
