/ internal / tools / ghostty_stub.go
ghostty_stub.go
 1  //go:build !darwin
 2  
 3  package tools
 4  
 5  import "fmt"
 6  
 7  const minGhosttyVersion = "1.3.0"
 8  
 9  var errNotDarwin = fmt.Errorf("ghostty integration requires macOS")
10  
11  func ghosttyAvailable() bool                                                   { return false }
12  func GhosttyAvailable() bool                                                   { return false }
13  func ghosttyNewTab(command, title, color string) (int, int, error)             { return 0, 0, errNotDarwin }
14  func ghosttyNewSplit(direction, command, title, color string) (int, int, error) { return 0, 0, errNotDarwin }
15  func ghosttySendInput(windowIdx, tabIdx int, text string) error                { return errNotDarwin }
16  func SetGhosttyTabAppearance(agentName string)                                 {}
17  func ghosttyWorkspaceScript(shanBinary string, agentNames []string) string     { return "" }
18  func GhosttyWorkspaceScript(shanBinary string, agentNames []string) string     { return "" }
19  func ExecGhosttyScript(script string) error                                    { return errNotDarwin }