From 0220f8fb8c1f165e69559eda019599a3aa53559b Mon Sep 17 00:00:00 2001 From: Brock Walters <153771548+nonpunctual@users.noreply.github.com> Date: Tue, 11 Jun 2024 14:30:09 -0400 Subject: [PATCH] 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. --- orbit/pkg/table/pmset/pmset_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbit/pkg/table/pmset/pmset_darwin.go b/orbit/pkg/table/pmset/pmset_darwin.go index 65e27363c6..586f385696 100644 --- a/orbit/pkg/table/pmset/pmset_darwin.go +++ b/orbit/pkg/table/pmset/pmset_darwin.go @@ -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 }