{
  "id": "nl",
  "name": "nl",
  "description": "Number the lines of a file.",
  "executables": [
    "nl"
  ],
  "commands": {
    "format": 1,
    "label": "Number lines",
    "description": "Add line numbers to files or standard input. Header and footer section styles are left out.",
    "quality": "ai-draft",
    "base": "fig:nl",
    "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/nl.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "fig"
        ]
      },
      {
        "id": "body_type",
        "label": "Body lines to number",
        "type": "string",
        "option": [
          "-b"
        ],
        "suggestions": [
          {
            "value": "a",
            "label": "a"
          },
          {
            "value": "t",
            "label": "t"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "format",
        "label": "Number format",
        "type": "string",
        "option": [
          "-n"
        ],
        "suggestions": [
          {
            "value": "ln",
            "label": "ln"
          },
          {
            "value": "rn",
            "label": "rn"
          },
          {
            "value": "rz",
            "label": "rz"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "width",
        "label": "Number width",
        "type": "integer",
        "option": [
          "-w"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "separator",
        "label": "Separator",
        "type": "string",
        "option": [
          "-s"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "start",
        "label": "Start number",
        "type": "integer",
        "option": [
          "-v"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "increment",
        "label": "Increment",
        "type": "integer",
        "option": [
          "-i"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "all-lines",
        "label": "Number all lines",
        "set": {
          "body_type": [
            "a"
          ]
        },
        "fields": [
          "files",
          "body_type",
          "format",
          "width"
        ],
        "required": [
          "files"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "body_type",
          "format",
          "width",
          "separator",
          "start",
          "increment"
        ]
      }
    ]
  }
}
