diff --git a/doc/json_schema.json b/doc/json_schema.json index 9e9fa4914..7b5516411 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -600,6 +600,7 @@ "opengl", "os", "packages", + "physicaldisk", "player", "poweradapter", "processes", @@ -1369,6 +1370,32 @@ } } }, + { + "title": "Physical Disk", + "properties": { + "type": { + "description": "Print physical disk information", + "const": "physicaldisk" + }, + "namePrefix": { + "description": "Show disks with given name prefix only", + "type": "string" + }, + "key": { + "$ref": "#/$defs/key" + }, + "keyColor": { + "$ref": "#/$defs/keyColor" + }, + "keyWidth": { + "$ref": "#/$defs/keyWidth" + }, + "format": { + "$ref": "#/$defs/format" + } + }, + "additionalProperties": false + }, { "title": "Public IP", "properties": { diff --git a/presets/all b/presets/all index 20442e13f..79fa56291 100644 --- a/presets/all +++ b/presets/all @@ -1 +1 @@ ---structure Title:Separator:OS:Host:Bios:Board:Chassis:Kernel:Uptime:Processes:Packages:Shell:Display:Brightness:Monitor:LM:DE:WM:WMTheme:Theme:Icons:Font:Cursor:Wallpaper:Terminal:TerminalFont:TerminalSize:CPU:CPUUsage:GPU:Memory:Swap:Disk:Battery:PowerAdapter:Player:Media:PublicIP:LocalIP:Wifi:DateTime:Locale:Vulkan:OpenGL:OpenCL:Users:Bluetooth:Sound:Gamepad:Weather:NetIO:DiskIO:Version:Break:Colors +--structure Title:Separator:OS:Host:Bios:Board:Chassis:Kernel:Uptime:Processes:Packages:Shell:Display:Brightness:Monitor:LM:DE:WM:WMTheme:Theme:Icons:Font:Cursor:Wallpaper:Terminal:TerminalFont:TerminalSize:CPU:CPUUsage:GPU:Memory:Swap:Disk:Battery:PowerAdapter:Player:Media:PublicIP:LocalIP:Wifi:DateTime:Locale:Vulkan:OpenGL:OpenCL:Users:Bluetooth:Sound:Gamepad:Weather:NetIO:DiskIO:PhysicalDisk:Version:Break:Colors diff --git a/presets/all.jsonc b/presets/all.jsonc index f26925af6..53b553aea 100644 --- a/presets/all.jsonc +++ b/presets/all.jsonc @@ -53,6 +53,7 @@ "weather", "netio", "diskio", + "physicaldisk", "version", "break", "colors" diff --git a/presets/ci.jsonc b/presets/ci.jsonc index 766a08bb5..0283d9ec2 100644 --- a/presets/ci.jsonc +++ b/presets/ci.jsonc @@ -62,6 +62,7 @@ }, "netio", "diskio", + "physicaldisk", "version", "break", "colors" diff --git a/src/data/help.json b/src/data/help.json index 232598eda..32f6ba73e 100644 --- a/src/data/help.json +++ b/src/data/help.json @@ -947,6 +947,13 @@ "type": "str" } }, + { + "long": "physicaldisk-name-prefix", + "desc": "Show disks with given name prefix only", + "arg": { + "type": "str" + } + }, { "long": "bluetooth-show-disconnected", "desc": "Set if disconnected bluetooth devices should be printed",