implement core logic (#3)

This commit is contained in:
Adem Baccara
2025-08-27 16:56:42 +01:00
committed by GitHub
parent e9225188e8
commit 8e3f7ebc37
27 changed files with 1675 additions and 245 deletions
+5 -1
View File
@@ -19,10 +19,14 @@ import (
"github.com/rivo/tview"
)
func DefaultStatusText() string {
return "[white]↑↓[-] Navigate • [white]Enter[-] SSH • [white]c[-] Copy SSH • [white]a[-] Add • [white]e[-] Edit • [white]g[-] Ping • [white]d[-] Delete • [white]p[-] Pin/Unpin • [white]/[-] Search • [white]q[-] Quit"
}
func NewStatusBar() *tview.TextView {
status := tview.NewTextView().SetDynamicColors(true)
status.SetBackgroundColor(tcell.Color235)
status.SetTextAlign(tview.AlignCenter)
status.SetText("[white]↑↓[-] Navigate • [white]Enter[-] SSH • [white]a[-] Add • [white]e[-] Edit • [white]d[-] Delete • [white]/[-] Search • [white]q[-] Quit • [white]?[-] Help")
status.SetText(DefaultStatusText())
return status
}