chore: small updates

Kujtim Hoxha created

Change summary

internal/tui/components/dialogs/commands/commands.go | 4 ++--
internal/tui/components/dialogs/ghdash/ghdash.go     | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)

Detailed changes

internal/tui/components/dialogs/commands/commands.go 🔗

@@ -453,8 +453,8 @@ func (c *commandDialogCmp) defaultCommands() []Command {
 	}
 
 	// Add gh-dash command if gh CLI with dash extension is installed.
-	if out, _, err := sh.Exec(c.ctx, "gh extension list"); err == nil {
-		if strings.Contains(out, "dash") {
+	if out, err := exec.CommandContext(c.ctx, "gh", "extension", "list").Output(); err == nil {
+		if strings.Contains(string(out), "dash") {
 			commands = append(commands, Command{
 				ID:          "ghdash",
 				Title:       "Open GitHub Dashboard",

internal/tui/components/dialogs/ghdash/ghdash.go 🔗

@@ -34,6 +34,7 @@ func NewDialog(ctx context.Context, workingDir string) *termdialog.Dialog {
 		Title:      "GitHub Dashboard",
 		LoadingMsg: "Starting gh-dash...",
 		Term:       terminal.New(terminal.Config{Context: ctx, Cmd: cmd}),
+		QuitHint:   "q to close",
 		OnClose: func() {
 			if configFile != "" {
 				_ = os.Remove(configFile)