Skip to content

Commit

Permalink
Added debug menu items using templating, to the default menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ Barrett committed Feb 7, 2023
1 parent 3a1db9e commit c636567
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions ee/desktop/menu/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ package menu

import (
"encoding/json"
"fmt"
"os"

"github.com/go-kit/kit/log"
"github.com/go-kit/kit/log/level"
"github.com/kolide/kit/version"
)

// menuIcons are named identifiers
Expand Down Expand Up @@ -133,9 +131,35 @@ func getDefaultMenu() *MenuData {
Tooltip: "Kolide",
Items: []menuItemData{
{
Label: fmt.Sprintf("Version %s", version.Version().Version),
Label: "Version: {{.LauncherVersion}}",
Disabled: true,
},
{
IsSeparator: true,
NonProdOnly: true,
},
{
Label: "Debug",
NonProdOnly: true,
Items: []menuItemData{
{
Label: "Launcher Version: {{.LauncherVersion}}",
Disabled: true,
},
{
Label: "Launcher Revision: {{.LauncherRevision}}",
Disabled: true,
},
{
Label: "Go Version: {{.GoVersion}}",
Disabled: true,
},
{
Label: "Hostname: {{.ServerHostname}}",
Disabled: true,
},
},
},
},
}

Expand Down

0 comments on commit c636567

Please sign in to comment.