diff options
| author | adamdottv <[email protected]> | 2025-07-10 10:19:25 -0500 |
|---|---|---|
| committer | adamdottv <[email protected]> | 2025-07-10 10:19:25 -0500 |
| commit | 6603d9a9f0712ca26ec9b373482e119e8aa9fd45 (patch) | |
| tree | cd91d2743f0dca366b442add52ae0112ae7ed51a /packages/tui/cmd | |
| parent | 5dc1920a4c6340aa27cef6671363e79ed876d49b (diff) | |
| download | opencode-6603d9a9f0712ca26ec9b373482e119e8aa9fd45.tar.gz opencode-6603d9a9f0712ca26ec9b373482e119e8aa9fd45.zip | |
feat: --mode flag passed to tui
Diffstat (limited to 'packages/tui/cmd')
| -rw-r--r-- | packages/tui/cmd/opencode/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/tui/cmd/opencode/main.go b/packages/tui/cmd/opencode/main.go index cd827a952..363ade844 100644 --- a/packages/tui/cmd/opencode/main.go +++ b/packages/tui/cmd/opencode/main.go @@ -27,6 +27,7 @@ func main() { var model *string = flag.String("model", "", "model to begin with") var prompt *string = flag.String("prompt", "", "prompt to begin with") + var mode *string = flag.String("mode", "", "mode to begin with") flag.Parse() url := os.Getenv("OPENCODE_SERVER") @@ -68,7 +69,7 @@ func main() { ctx, cancel := context.WithCancel(context.Background()) defer cancel() - app_, err := app.New(ctx, version, appInfo, modes, httpClient, model, prompt) + app_, err := app.New(ctx, version, appInfo, modes, httpClient, model, prompt, mode) if err != nil { panic(err) } |
