feat(commands): more commands (#30)

- I wrote a scripts to copy and generate all commands missing in iris
from fig repo: https://github.com/withfig/autocomplete
- Add a new script to generate commands docs about which commands
currently are inside commands folder
377d4aac663590e504fe39a92eb4dac4cbd333b2
- Add more icons e64d4e70a1db61e62053460a882e093bd6373ab1
This commit is contained in:
VERSE
2026-07-04 22:08:36 +07:00
committed by GitHub
parent ffa336196a
commit 2ef3c90819
482 changed files with 22971 additions and 5 deletions
+42
View File
@@ -0,0 +1,42 @@
package sys
import (
"github.com/versenilvis/iris/commands/core"
)
func init() {
core.Register(&core.Spec{
Name: "pmset",
Description: "Display sleep timer (value in minutes, or 0 to disable)",
Subcommands: []core.Subcommand{
{Name: "live", Description: "Display the settings currently in use. (default if no argument given)"},
{Name: "custom", Description: "Display custom settings for all power sources"},
{Name: "cap", Description: "Display which power management features the machine supports"},
{Name: "sched", Description: "Display scheduled startup/wake and shutdown/sleep events"},
{Name: "ups", Description: "Display UPS emergency thresholds"},
{Name: "ps", Description: "Display status of batteries and UPSs"},
{Name: "pslog", Description: "Display an ongoing log of power source (battery and UPS)state"},
{Name: "rawlog", Description: "Display an ongoing log of battery state as read directly from battery"},
{Name: "profiles", Description: "Display the settings associated with each Energy Saver profile. 10.5+"},
{Name: "assertions", Description: "Display a summary of power assertions. 10.6+"},
{Name: "assertionslog", Description: "Show a log of assertion creations and releases. 10.6+"},
{Name: "sysloadlog", Description: "Display an ongoing log of lives changes to the system load advisory. 10.6+"},
{Name: "ac", Description: "Display details about an attached AC power adapter"},
{Name: "log", Description: "Display a history of sleeps, wakes, and other power management events"},
{Name: "uuid", Description: "Display the currently active sleep/wake UUID"},
{Name: "history", Description: "A debugging tool. Prints a timeline of system sleeplwake UUIDs"},
{Name: "historydetailed", Description: "Prints driver-level timings for a sleep/wake. Pass a UUID as an argument"},
{Name: "everything", Description: "Print output from every argument under the GETTING header 10.8+"},
{Name: "UUID", Description: "Used for historydetailed"},
{Name: "schedule", Description: "For setting up one-time power events"},
{Name: "repeat", Description: "For setting up daily/weekly power on and power off events"},
},
Options: []core.Option{
{Name: "-g", Description: "GETTING"},
{Name: "-a", Description: "Settings for all"},
{Name: "-b", Description: "Settings for battery"},
{Name: "-c", Description: "Settings for charger"},
{Name: "-u", Description: "Settings for UPS"},
},
})
}