mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-02 22:40:22 +00:00
wip: api for tui
This commit is contained in:
parent
5611ef8b28
commit
f20ef61bc7
18 changed files with 594 additions and 39 deletions
|
|
@ -13,6 +13,7 @@ import (
|
|||
flag "github.com/spf13/pflag"
|
||||
"github.com/sst/opencode-sdk-go"
|
||||
"github.com/sst/opencode-sdk-go/option"
|
||||
"github.com/sst/opencode/internal/api"
|
||||
"github.com/sst/opencode/internal/app"
|
||||
"github.com/sst/opencode/internal/clipboard"
|
||||
"github.com/sst/opencode/internal/tui"
|
||||
|
|
@ -100,6 +101,8 @@ func main() {
|
|||
}
|
||||
}()
|
||||
|
||||
go api.Start(ctx, program, httpClient)
|
||||
|
||||
// Handle signals in a separate goroutine
|
||||
go func() {
|
||||
sig := <-sigChan
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue