{
  "id": "chsh",
  "name": "chsh",
  "description": "Change your login shell.",
  "executables": [
    "chsh"
  ],
  "commands": {
    "format": 1,
    "label": "Change login shell",
    "description": "Set the login shell, or list the valid shells.",
    "quality": "ai-draft",
    "base": "fig:chsh",
    "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/chsh.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "shell",
        "label": "Shell",
        "description": "Full path of the new login shell.",
        "type": "string",
        "option": [
          "-s",
          "--shell"
        ],
        "suggestions": [
          {
            "value": "/bin/zsh",
            "label": "zsh"
          },
          {
            "value": "/bin/bash",
            "label": "bash"
          },
          {
            "value": "/bin/sh",
            "label": "sh"
          }
        ],
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "list_shells",
        "label": "List shells",
        "type": "boolean",
        "option": [
          "-l",
          "--list-shells"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "username",
        "label": "Username",
        "description": "Leave empty to change your own shell.",
        "type": "string",
        "position": 0,
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "change",
        "label": "Change shell",
        "fields": [
          "shell",
          "username"
        ],
        "required": [
          "shell"
        ]
      },
      {
        "id": "list",
        "label": "List valid shells",
        "fields": [
          "list_shells"
        ],
        "required": [
          "list_shells"
        ],
        "set": {
          "list_shells": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "shell",
          "username",
          "list_shells"
        ]
      }
    ]
  }
}
