{
  "id": "ctop",
  "name": "ctop",
  "homepage": "https://github.com/bcicen/ctop",
  "description": "Top-like interface for container metrics.",
  "executables": [
    "ctop"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/ctop/config",
      "~/.ctop"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false
  },
  "commands": {
    "format": 1,
    "label": "Monitor containers",
    "description": "Open the ctop container metrics view with an initial filter, sort and connector. Interactive key bindings are not covered.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "help",
        "kind": "help",
        "url": "https://github.com/bcicen/ctop/blob/master/main.go",
        "revision": "2026-10-27",
        "evidence": "Usage of ctop:\n  -a  show active containers only\n  -connector string  container connector to use (default \"docker\")\n  -f string  filter containers\n  -h  display this help dialog\n  -i  invert default colors\n  -r  reverse container sort order\n  -s string  select container sort field\n  -v  output version information and exit\n(Go flag package also accepts the double-dash spelling --connector)\n"
      }
    ],
    "field": [
      {
        "id": "filter",
        "label": "Filter",
        "type": "string",
        "option": [
          "-f"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "active_only",
        "label": "Active containers only",
        "type": "boolean",
        "option": [
          "-a"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "sort",
        "label": "Sort field",
        "type": "string",
        "option": [
          "-s"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "reverse",
        "label": "Reverse sort order",
        "type": "boolean",
        "option": [
          "-r"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "invert",
        "label": "Invert colors",
        "type": "boolean",
        "option": [
          "-i"
        ],
        "sources": [
          "help"
        ]
      },
      {
        "id": "connector",
        "label": "Connector",
        "type": "string",
        "option": [
          "--connector"
        ],
        "suggestions": [
          {
            "value": "docker",
            "label": "Docker"
          }
        ],
        "sources": [
          "help"
        ]
      }
    ],
    "task": [
      {
        "id": "active",
        "label": "Active containers",
        "fields": [
          "active_only",
          "sort",
          "reverse"
        ],
        "required": [],
        "set": {
          "active_only": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "filter",
          "active_only",
          "sort",
          "reverse"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "invert",
          "connector"
        ]
      }
    ]
  }
}
