feat(engine): podman native — auto-detect runtime (docker→podman), compose mengikuti engine, doctor engine-agnostic
CI / test (push) Successful in 25s
CI / test (push) Successful in 25s
This commit is contained in:
1 parent
1b9a406aa7
commit
0551fb1387
12 files changed
+292
-60
No files matched your search
@@ -63,6 +63,14 @@ func (m Model) clockPanel(w, h int) string {
|
||||
return panel(i18n.T("section.clock"), "", lines, w, h, false)
|
||||
}
|
||||
|
||||
// engineTitle — judul panel runtime (Docker/Podman) sesuai hasil deteksi.
|
||||
func (m Model) engineTitle() string {
|
||||
if m.engineName == "podman" {
|
||||
return "Podman"
|
||||
}
|
||||
return "Docker"
|
||||
}
|
||||
|
||||
func (m Model) dockerPanel(w, h int) string {
|
||||
var lines []string
|
||||
switch {
|
||||
@@ -80,7 +88,7 @@ func (m Model) dockerPanel(w, h int) string {
|
||||
styled(theme.Current().Success, i18n.T("state.connected")),
|
||||
)
|
||||
}
|
||||
return panel("Docker", i18n.T("host.local"), lines, w, h, false)
|
||||
return panel(m.engineTitle(), i18n.T("host.local"), lines, w, h, false)
|
||||
}
|
||||
|
||||
func (m Model) hostPanel(w, h int) string {
|
||||
|
||||
Reference in new issue
Block a user