3716c8fc6d
TUI fullscreen con 5 vistas: Containers (start/stop/restart/logs), Images (list/remove), Volumes (list/remove), Networks (list/remove), Compose (up/down/logs). Usa DevFactory (tui, shell, core). Navegacion por tabs, filtrado en containers/images, scroll en logs. Incluye operations.db con entities y relations del proyecto.
15 lines
263 B
Go
15 lines
263 B
Go
package views
|
|
|
|
// Navigation key constants.
|
|
const (
|
|
KeyQuit = "ctrl+c"
|
|
KeyEsc = "esc"
|
|
KeyBack = "0"
|
|
KeyTab = "tab"
|
|
)
|
|
|
|
// IsBack returns true if the key should trigger back navigation.
|
|
func IsBack(key string) bool {
|
|
return key == KeyEsc || key == KeyBack
|
|
}
|