{
  "id": "id",
  "name": "id",
  "description": "Display user and group names and numeric IDs of the calling process or a given user.",
  "executables": [
    "id"
  ],
  "commands": {
    "format": 1,
    "label": "Show user identity",
    "description": "Show user and group IDs for yourself or another user. Audit (-A) and MAC label (-M) options are left out.",
    "quality": "ai-draft",
    "base": "fig:id",
    "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/id.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "user",
        "label": "User",
        "description": "Login name or user ID. Leave empty for the current user.",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "full_name",
        "label": "Full name",
        "type": "boolean",
        "option": [
          "-F"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "groups",
        "label": "All group IDs",
        "type": "boolean",
        "option": [
          "-G"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "group",
        "label": "Effective group ID",
        "type": "boolean",
        "option": [
          "-g"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "uid",
        "label": "Effective user ID",
        "type": "boolean",
        "option": [
          "-u"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "names",
        "label": "Names instead of numbers",
        "description": "For use with the group and user ID options.",
        "type": "boolean",
        "option": [
          "-n"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "passwd",
        "label": "Password file format",
        "type": "boolean",
        "option": [
          "-P"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "readable",
        "label": "Human-readable",
        "type": "boolean",
        "option": [
          "-p"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "whoami",
        "label": "Show identity",
        "fields": [
          "user",
          "readable"
        ],
        "required": []
      },
      {
        "id": "group-names",
        "label": "List group names",
        "set": {
          "groups": [
            true
          ],
          "names": [
            true
          ]
        },
        "fields": [
          "user"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "user",
          "readable",
          "groups",
          "names"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "full_name",
          "group",
          "uid",
          "passwd"
        ]
      }
    ]
  }
}
