Commit db0ba7ca authored by Kirill Unitsaev's avatar Kirill Unitsaev

hyprland/var: use value field in JSON output

parent daaefa53
......@@ -65,7 +65,11 @@ func HyprlandVarInfoCommand(ctx context.Context, cmd *cli.Command) error {
}
if config.IsJSON(cmd) {
return ui.PrintJSON(ui.TreeItemsToJSON(items))
jsonItems := make([]ui.JSONItem, len(info))
for i, v := range info {
jsonItems[i] = ui.JSONItem{Name: v.Name, Value: v.Value}
}
return ui.PrintJSON(jsonItems)
}
ui.RenderTree(ui.RenderTreeOptions{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment