initial commit [141.14.140.180,mike]

This commit is contained in:
mike committed 2026-10-22 13:21:28 +02:00
commit 156bb18c91
50 files changed
+13466

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package ghostty
import "testing"
func TestIsCLIAction(t *testing.T) {
cases := map[string]bool{
"/usr/bin/ghostty\x00": false,
"ghostty\x00--gtk-single-instance=true\x00": false,
"ghostty\x00+list-themes\x00": true,
"ghostty\x00--config-file=x\x00+show-config\x00": true,
"ghostty\x00-e\x00vim\x00+10\x00file\x00": false,
}
for cmdline, want := range cases {
if got := isCLIAction([]byte(cmdline)); got != want {
t.Errorf("isCLIAction(%q) = %v, want %v", cmdline, got, want)
}
}
}