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 }
[[commands.source]]
id = "man"
kind = "manual"
url = "https://github.com/Macchina-CLI/macchina/blob/main/doc/macchina.1"
revision = "2024-09-29"
evidence = """-d, --doctor
Checks the system for failures.
-c, --config=FILE
Specify a custom path to a configuration file.
-l, --list-themes
Lists all available themes.
-t, --theme=THEME
Specify the name of the theme to use, i.e. its basename and without the ".toml" extension.
-i, --interface=IF_NAME
Specify the network interface for the LocalIP readout, e.g. "wlan0", "eth0".
-C, --logical-cores
Toggles between logical and physical cores for the Processor readout.
-K, --long-kernel
Lengthens kernel output.
-S, --long-shell
Lengthens shell output.
-U, --long-uptime
Lengthens uptime output.
-m, --memory-percentage
Show memory usage in percentage
-p, --disk-space-percentage
Show disk space usage in percentage"""
[[commands.field]]
id = "doctor"
label = "Run doctor"
description = "Check the system for failures instead of printing the info."
type = "boolean"
option = ["--doctor", "-d"]
sources = ["man"]
[[commands.field]]
id = "list_themes"
label = "List themes"
type = "boolean"
option = ["--list-themes", "-l"]
sources = ["man"]
[[commands.field]]
id = "theme"
label = "Theme"
description = "Theme basename without .toml; see List themes."
type = "string"
option = ["--theme", "-t"]
sources = ["man"]
[[commands.field]]
id = "config"
label = "Config file"
type = "path"
option = ["--config", "-c"]
path = { kind = "file", role = "input", must_exist = true }
sources = ["man"]
[[commands.field]]
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"]
[[commands.field]]
id = "logical_cores"
label = "Logical cores"
type = "boolean"
option = ["--logical-cores", "-C"]
sources = ["man"]
[[commands.field]]
id = "long_kernel"
label = "Long kernel"
type = "boolean"
option = ["--long-kernel", "-K"]
sources = ["man"]
[[commands.field]]
id = "long_shell"
label = "Long shell"
type = "boolean"
option = ["--long-shell", "-S"]
sources = ["man"]
[[commands.field]]
id = "long_uptime"
label = "Long uptime"
type = "boolean"
option = ["--long-uptime", "-U"]
sources = ["man"]
[[commands.field]]
id = "memory_percentage"
label = "Memory as percentage"
type = "boolean"
option = ["--memory-percentage", "-m"]
sources = ["man"]
[[commands.field]]
id = "disk_percentage"
label = "Disk space as percentage"
type = "boolean"
option = ["--disk-space-percentage", "-p"]
sources = ["man"]
[[commands.task]]
id = "show"
label = "Show system info"
fields = ["theme", "long_kernel", "long_shell", "long_uptime", "memory_percentage", "disk_percentage"]
required = []
[[commands.task]]
id = "doctor"
label = "Check for failures"
set = { doctor = [true] }
lock = ["doctor"]
fields = ["doctor", "config"]
required = []
[[commands.group]]
id = "basic"
label = "Basic"
fields = ["theme", "list_themes", "doctor", "config"]
[[commands.group]]
id = "advanced"
label = "Advanced"
fields = ["interface", "logical_cores", "long_kernel", "long_shell", "long_uptime", "memory_percentage", "disk_percentage"]