{
  "id": "asciinema",
  "name": "asciinema",
  "homepage": "https://asciinema.org",
  "description": "A command-line tool for recording and live streaming terminal sessions.",
  "icon": "SimpleIcons:asciinema",
  "executables": [
    "asciinema"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/asciinema/config.toml",
      "[configHome]/asciinema/config"
    ],
    "exclude": [],
    "secret": [
      "~/.local/state/asciinema/install-id",
      "[configHome]/asciinema/install-id"
    ],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "asciinema",
    "description": "Record and replay terminal sessions. Authentication and cat are left out.",
    "quality": "ai-draft",
    "base": "fig:asciinema",
    "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/asciinema.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "rec"
        ],
        "label": "Record a session",
        "description": "Record a terminal session to an asciicast file. Environment capture is left out.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/asciinema.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "filename",
            "label": "Output file",
            "description": "Leave empty to be asked, or upload afterwards.",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "output",
              "must_exist": false
            },
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "command",
            "label": "Command to record",
            "description": "Defaults to $SHELL.",
            "type": "string",
            "option": [
              "--command",
              "-c"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "title",
            "label": "Title",
            "type": "string",
            "option": [
              "--title",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "idle_time_limit",
            "label": "Idle time limit (s)",
            "type": "number",
            "option": [
              "--idle-time-limit",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "stdin",
            "label": "Record keyboard input",
            "type": "boolean",
            "option": [
              "--stdin"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "append",
            "label": "Append to existing file",
            "type": "boolean",
            "option": [
              "--append"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "overwrite",
            "label": "Overwrite existing file",
            "type": "boolean",
            "option": [
              "--overwrite"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "raw",
            "label": "Raw output (no timing)",
            "type": "boolean",
            "option": [
              "--raw"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "cols",
            "label": "Columns",
            "type": "integer",
            "option": [
              "--cols"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "rows",
            "label": "Rows",
            "type": "integer",
            "option": [
              "--rows"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "yes",
            "label": "Answer yes to prompts",
            "type": "boolean",
            "option": [
              "--yes",
              "-y"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "quiet",
            "label": "Quiet",
            "type": "boolean",
            "option": [
              "--quiet",
              "-q"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "record",
            "label": "Record to a file",
            "fields": [
              "filename",
              "command",
              "title",
              "idle_time_limit",
              "stdin",
              "overwrite"
            ],
            "required": [
              "filename"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "filename",
              "command",
              "title",
              "idle_time_limit",
              "stdin",
              "overwrite"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "append",
              "raw",
              "cols",
              "rows",
              "yes",
              "quiet"
            ]
          }
        ]
      },
      {
        "path": [
          "play"
        ],
        "label": "Play a recording",
        "description": "Replay an asciicast file or URL in the terminal.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/asciinema.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "File or URL",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "speed",
            "label": "Playback speed",
            "type": "number",
            "option": [
              "--speed",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "play",
            "label": "Play recording",
            "fields": [
              "file",
              "speed"
            ],
            "required": [
              "file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file",
              "speed"
            ]
          }
        ]
      },
      {
        "path": [
          "upload"
        ],
        "label": "Upload a recording",
        "description": "Upload an asciicast to asciinema.org.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/asciinema.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "file",
            "label": "Recording file",
            "type": "path",
            "position": 0,
            "path": {
              "kind": "file",
              "role": "input",
              "must_exist": true
            },
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "upload",
            "label": "Upload",
            "fields": [
              "file"
            ],
            "required": [
              "file"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "file"
            ]
          }
        ]
      }
    ]
  }
}
