feat(dev): add Docker development CLI

This commit is contained in:
Thomas Camlong committed 2026-07-31 14:28:31 +02:00
1 parent 61128ddcc8
commit e97eb7fc58
26 files changed
+3277 -11

No files matched your search

@@ -0,0 +1,25 @@
package platform
import "testing"
func TestOpenCommand(t *testing.T) {
tests := []struct {
goos string
name string
}{
{goos: "darwin", name: "open"},
{goos: "linux", name: "xdg-open"},
{goos: "windows", name: "rundll32"},
}
for _, test := range tests {
t.Run(test.goos, func(t *testing.T) {
name, args, err := openCommand(test.goos, "https://example.com")
if err != nil {
t.Fatal(err)
}
if name != test.name || len(args) == 0 {
t.Fatalf("command = %s %v", name, args)
}
})
}
}