{
  "id": "ln",
  "name": "ln",
  "description": "Create hard or symbolic links to files.",
  "executables": [
    "ln"
  ],
  "commands": {
    "format": 1,
    "label": "Create link",
    "description": "Create a hard or symbolic link. Options not present in the completion data are left out.",
    "quality": "ai-draft",
    "base": "fig:ln",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": true
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ln.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "source",
        "label": "Target",
        "description": "Existing file or directory the link points to.",
        "type": "path",
        "position": 0,
        "path": {
          "kind": "any",
          "role": "input"
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "link_name",
        "label": "Link name or directory",
        "type": "path",
        "position": 1,
        "path": {
          "kind": "any",
          "role": "output",
          "must_exist": false
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "symbolic",
        "label": "Symbolic link",
        "type": "boolean",
        "option": [
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "force",
        "label": "Replace existing link",
        "description": "Unlink an existing destination first.",
        "type": "boolean",
        "option": [
          "-f"
        ],
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "interactive",
        "label": "Prompt before replacing",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_deref",
        "label": "Do not follow symlinks",
        "type": "boolean",
        "option": [
          "-h"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "symlink",
        "label": "Symbolic link",
        "set": {
          "symbolic": [
            true
          ]
        },
        "fields": [
          "source",
          "link_name",
          "force",
          "verbose"
        ],
        "required": [
          "source",
          "link_name"
        ]
      },
      {
        "id": "hardlink",
        "label": "Hard link",
        "fields": [
          "source",
          "link_name",
          "verbose"
        ],
        "required": [
          "source",
          "link_name"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "source",
          "link_name",
          "symbolic",
          "force",
          "verbose"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "no_deref",
          "interactive"
        ]
      }
    ]
  }
}
