{
  "id": "htop",
  "name": "htop",
  "homepage": "https://htop.dev",
  "description": "htop is a cross-platform ncurses-based process viewer.",
  "icon": "SimpleIcons:htop",
  "executables": [
    "htop"
  ],
  "platforms": [
    "macos",
    "linux"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/htop/htoprc"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Process viewer",
    "description": "Start htop with a refresh delay, filter, sort column or view. PID and user filters are included; key bindings inside htop are not.",
    "quality": "ai-draft",
    "base": "fig:htop",
    "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/htop.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "delay",
        "label": "Refresh delay (tenths of a second)",
        "type": "integer",
        "option": [
          "--delay",
          "-d"
        ],
        "description": "Delay between updates, in tenths of a second.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "filter",
        "label": "Filter commands",
        "type": "string",
        "option": [
          "--filter",
          "-F"
        ],
        "description": "Show only commands matching this text.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "sort_key",
        "label": "Sort column",
        "type": "string",
        "option": [
          "--sort-key",
          "-s"
        ],
        "description": "Sort by this column in list view, e.g. PERCENT_CPU.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "tree",
        "label": "Tree view",
        "type": "boolean",
        "option": [
          "--tree",
          "-t"
        ],
        "description": "Show the tree view.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "user",
        "label": "User",
        "type": "string",
        "option": [
          "--user",
          "-u"
        ],
        "description": "Show only processes for a given user.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_color",
        "label": "Monochrome",
        "type": "boolean",
        "option": [
          "--no-color",
          "-C"
        ],
        "description": "Use a monochrome color scheme.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_mouse",
        "label": "Disable mouse",
        "type": "boolean",
        "option": [
          "--no-mouse",
          "-M"
        ],
        "description": "Disable the mouse.",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_unicode",
        "label": "ASCII only",
        "type": "boolean",
        "option": [
          "--no-unicode",
          "-U"
        ],
        "description": "Do not use unicode but plain ASCII.",
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "tree",
        "label": "Tree view",
        "set": {
          "tree": [
            true
          ]
        },
        "fields": [
          "delay",
          "filter",
          "user",
          "no_color"
        ],
        "required": []
      },
      {
        "id": "user",
        "label": "One user's processes",
        "fields": [
          "user",
          "sort_key",
          "tree"
        ],
        "required": [
          "user"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "delay",
          "filter",
          "sort_key",
          "tree",
          "user"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "no_color",
          "no_mouse",
          "no_unicode"
        ]
      }
    ]
  }
}
