{
  "id": "mcfly",
  "name": "McFly",
  "homepage": "https://github.com/cantino/mcfly",
  "description": "An intelligent shell history search tool.",
  "executables": [
    "mcfly"
  ],
  "dotfiles": {
    "paths": [
      "~/.mcfly",
      "[appData]/McFly/config.toml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "McFly",
    "description": "Root has no options of its own; use the dump subcommand to export shell history.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "subcommand": [
      {
        "path": [
          "dump"
        ],
        "label": "Dump history",
        "description": "Write McFly's command history to standard output as JSON or CSV, optionally filtered by time or regex.",
        "source": [
          {
            "id": "readme",
            "kind": "manual",
            "url": "https://github.com/cantino/mcfly/blob/master/README.md",
            "revision": "2026-10-27",
            "evidence": "mcfly dump --since '2023-01-01' --before '2023-09-12 09:15:30'\nYou can specify **csv** as dump format via `--format csv` as well.\nmcfly dump -r '^cargo run'\nYou can use `-r/--regex` and time options at the same time.\n"
          }
        ],
        "field": [
          {
            "id": "since",
            "label": "Since",
            "description": "Local time, e.g. 2023-01-01.",
            "type": "string",
            "option": [
              "--since"
            ],
            "sources": [
              "readme"
            ]
          },
          {
            "id": "before",
            "label": "Before (exclusive)",
            "type": "string",
            "option": [
              "--before"
            ],
            "sources": [
              "readme"
            ]
          },
          {
            "id": "regex",
            "label": "Command regex",
            "type": "string",
            "option": [
              "--regex",
              "-r"
            ],
            "sources": [
              "readme"
            ]
          },
          {
            "id": "format",
            "label": "Format",
            "description": "JSON is the default.",
            "type": "enum",
            "option": [
              "--format"
            ],
            "choices": [
              {
                "value": "csv",
                "label": "CSV"
              }
            ],
            "sources": [
              "readme"
            ]
          }
        ],
        "task": [
          {
            "id": "all",
            "label": "Dump everything",
            "fields": [],
            "required": []
          },
          {
            "id": "filtered",
            "label": "Filtered dump",
            "fields": [
              "since",
              "regex",
              "format"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "since",
              "before",
              "regex",
              "format"
            ]
          }
        ]
      }
    ]
  }
}
