{
  "id": "macchina",
  "name": "macchina",
  "homepage": "https://github.com/Macchina-CLI/macchina",
  "description": "A fast, minimal and customizable system information frontend",
  "executables": [
    "macchina"
  ],
  "dotfiles": {
    "paths": [
      "[configHome]/macchina/macchina.toml",
      "%APPDATA%/macchina/macchina.toml"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "macchina",
    "description": "Show system information with a chosen theme, readouts and a few output toggles. Readout selection (--show) is left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://github.com/Macchina-CLI/macchina/blob/main/doc/macchina.1",
        "revision": "2024-09-29",
        "evidence": "-d, --doctor\nChecks the system for failures.\n-c, --config=FILE\nSpecify a custom path to a configuration file.\n-l, --list-themes\nLists all available themes.\n-t, --theme=THEME\nSpecify the name of the theme to use, i.e. its basename and without the \".toml\" extension.\n-i, --interface=IF_NAME\nSpecify the network interface for the LocalIP readout, e.g. \"wlan0\", \"eth0\".\n-C, --logical-cores\nToggles between logical and physical cores for the Processor readout.\n-K, --long-kernel\nLengthens kernel output.\n-S, --long-shell\nLengthens shell output.\n-U, --long-uptime\nLengthens uptime output.\n-m, --memory-percentage\nShow memory usage in percentage\n-p, --disk-space-percentage\nShow disk space usage in percentage"
      }
    ],
    "field": [
      {
        "id": "doctor",
        "label": "Run doctor",
        "description": "Check the system for failures instead of printing the info.",
        "type": "boolean",
        "option": [
          "--doctor",
          "-d"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "list_themes",
        "label": "List themes",
        "type": "boolean",
        "option": [
          "--list-themes",
          "-l"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "theme",
        "label": "Theme",
        "description": "Theme basename without .toml; see List themes.",
        "type": "string",
        "option": [
          "--theme",
          "-t"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "config",
        "label": "Config file",
        "type": "path",
        "option": [
          "--config",
          "-c"
        ],
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "interface",
        "label": "Network interface",
        "description": "Interface used for the LocalIP readout.",
        "type": "string",
        "option": [
          "--interface",
          "-i"
        ],
        "suggestions": [
          {
            "value": "eth0",
            "label": "eth0"
          },
          {
            "value": "wlan0",
            "label": "wlan0"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "logical_cores",
        "label": "Logical cores",
        "type": "boolean",
        "option": [
          "--logical-cores",
          "-C"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "long_kernel",
        "label": "Long kernel",
        "type": "boolean",
        "option": [
          "--long-kernel",
          "-K"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "long_shell",
        "label": "Long shell",
        "type": "boolean",
        "option": [
          "--long-shell",
          "-S"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "long_uptime",
        "label": "Long uptime",
        "type": "boolean",
        "option": [
          "--long-uptime",
          "-U"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "memory_percentage",
        "label": "Memory as percentage",
        "type": "boolean",
        "option": [
          "--memory-percentage",
          "-m"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "disk_percentage",
        "label": "Disk space as percentage",
        "type": "boolean",
        "option": [
          "--disk-space-percentage",
          "-p"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "show",
        "label": "Show system info",
        "fields": [
          "theme",
          "long_kernel",
          "long_shell",
          "long_uptime",
          "memory_percentage",
          "disk_percentage"
        ],
        "required": []
      },
      {
        "id": "doctor",
        "label": "Check for failures",
        "set": {
          "doctor": [
            true
          ]
        },
        "lock": [
          "doctor"
        ],
        "fields": [
          "doctor",
          "config"
        ],
        "required": []
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "theme",
          "list_themes",
          "doctor",
          "config"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "interface",
          "logical_cores",
          "long_kernel",
          "long_shell",
          "long_uptime",
          "memory_percentage",
          "disk_percentage"
        ]
      }
    ]
  }
}
