{
  "id": "lima",
  "name": "Lima",
  "homepage": "https://lima-vm.io",
  "description": "Lima launches Linux virtual machines with automatic file sharing and port forwarding (similar to WSL2).",
  "executables": [
    "lima",
    "limactl"
  ],
  "dotfiles": {
    "paths": [
      "~/.lima/_config/default.yaml",
      "~/.lima/_config/override.yaml",
      "~/.lima/_config/base.yaml",
      "~/.lima/_config/networks.yaml",
      "~/.lima/_templates/"
    ],
    "secret": [
      "~/.lima/_config/user"
    ],
    "machine_lines": [
      {
        "file": "~/.lima/_config/networks.yaml",
        "match": {
          "key_path": [
            "paths.socketVMNet",
            "paths.varRun",
            "paths.sudoers"
          ]
        },
        "scope": "platform"
      },
      {
        "file": "~/.lima/_config/networks.yaml",
        "match": {
          "key_path": [
            "networks.*.interface"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Manage Lima VMs",
    "description": "List, start, stop and open a shell in Lima instances via limactl. Creation templates, copy and delete are left out.",
    "quality": "ai-draft",
    "base": "fig:limactl",
    "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/limactl.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "list"
        ],
        "label": "List instances",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "json",
            "label": "JSON output",
            "type": "boolean",
            "option": [
              "--json"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Names only",
            "type": "boolean",
            "option": [
              "-q",
              "--quiet"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "json",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "start"
        ],
        "label": "Start an instance",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "target",
            "label": "Instance, template file or URL",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "tty",
            "label": "Interactive editor",
            "type": "boolean",
            "option": [
              "--tty"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "start",
            "label": "Start instance",
            "fields": [
              "target"
            ],
            "required": [
              "target"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "target",
              "tty"
            ]
          }
        ]
      },
      {
        "path": [
          "stop"
        ],
        "label": "Stop an instance",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "instance",
            "label": "Instance",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "force",
            "label": "Force stop",
            "type": "boolean",
            "option": [
              "-f",
              "--force"
            ],
            "effect": "exec",
            "sources": [
              "fig"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "instance",
              "force"
            ]
          }
        ]
      },
      {
        "path": [
          "shell"
        ],
        "label": "Open a shell",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/limactl.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "instance",
            "label": "Instance",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "workdir",
            "label": "Working directory",
            "type": "string",
            "option": [
              "--workdir"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "instance",
              "workdir"
            ]
          }
        ]
      }
    ]
  }
}
