Update pmset_darwin.go (#19639)

From the pmset man page:

-g custom displays custom settings for all power sources.

i.e., pmset -g is incomplete. 

What would be even better is pmset -g everything which outputs results
from all -g options but the schema of this data is inconsistent (it's
not all key/vals) so would probably require more work.
This commit is contained in:
Brock Walters
2024-06-11 14:30:09 -04:00
committed by GitHub
parent 99f431f8d7
commit 0220f8fb8c
+1 -1
View File
@@ -41,7 +41,7 @@ func Generate(ctx context.Context, queryContext table.QueryContext) ([]map[strin
}
}
output, err := exec.CommandContext(ctx, "/usr/bin/pmset", "-g", getting).CombinedOutput()
output, err := exec.CommandContext(ctx, "/usr/bin/pmset", "-g", "custom", getting).CombinedOutput()
if err != nil {
return nil, err
}