{
  "id": "exercism",
  "name": "Exercism CLI",
  "homepage": "https://github.com/exercism/cli",
  "description": "A Go based command line tool for exercism.org.",
  "icon": "SimpleIcons:exercism",
  "executables": [
    "exercism"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/exercism/user.json"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": "[configHome]/exercism/user.json",
        "match": {
          "key_path": [
            "token"
          ]
        }
      }
    ],
    "machine_lines": [
      {
        "file": "[configHome]/exercism/user.json",
        "match": {
          "key_path": [
            "workspace"
          ]
        },
        "scope": "backup"
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Exercism",
    "description": "Download exercises, submit solutions and configure the client.",
    "quality": "ai-draft",
    "base": "fig:exercism",
    "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/exercism.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "download"
        ],
        "label": "Download exercise",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/exercism.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "exercise",
            "label": "Exercise slug",
            "type": "string",
            "option": [
              "--exercise",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "track",
            "label": "Track",
            "type": "string",
            "option": [
              "--track",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "team",
            "label": "Team",
            "type": "string",
            "option": [
              "--team",
              "-T"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "uuid",
            "label": "Solution UUID",
            "type": "string",
            "option": [
              "--uuid",
              "-u"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "download",
            "label": "Download",
            "fields": [
              "exercise",
              "track"
            ],
            "required": [
              "exercise",
              "track"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "exercise",
              "track"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "team",
              "uuid"
            ]
          }
        ]
      },
      {
        "path": [
          "submit"
        ],
        "label": "Submit solution",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/exercism.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "Files",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "submit",
            "label": "Submit",
            "fields": [
              "file"
            ],
            "required": [
              "file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file"
            ]
          }
        ]
      },
      {
        "path": [
          "configure"
        ],
        "label": "Configure client",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/exercism.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "show",
            "label": "Show current config",
            "type": "boolean",
            "option": [
              "--show",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "token",
            "label": "API token",
            "type": "string",
            "option": [
              "--token",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "workspace",
            "label": "Workspace",
            "type": "path",
            "option": [
              "--workspace",
              "-w"
            ],
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "api",
            "label": "API base URL",
            "type": "string",
            "option": [
              "--api",
              "-a"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_verify",
            "label": "Skip token check",
            "type": "boolean",
            "option": [
              "--no-verify"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "show",
            "label": "Show config",
            "set": {
              "show": [
                true
              ]
            },
            "fields": [
              "show"
            ]
          },
          {
            "id": "workspace",
            "label": "Set workspace",
            "fields": [
              "workspace",
              "token"
            ],
            "required": [
              "workspace"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "show",
              "token",
              "workspace"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "api",
              "no_verify"
            ]
          }
        ]
      }
    ]
  }
}
