diff options
| author | Aiden Cline <[email protected]> | 2025-08-11 18:32:09 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-11 18:32:09 -0500 |
| commit | b2a4f57d640655b78f25d4485d2cf137637c3c53 (patch) | |
| tree | 46d7314a45af05757cbfd6e1bcc4e2d97cb887a2 /packages/tui/cmd | |
| parent | 0ce7d92a8b67c5660669b7850d758131d39b076d (diff) | |
| download | opencode-b2a4f57d640655b78f25d4485d2cf137637c3c53.tar.gz opencode-b2a4f57d640655b78f25d4485d2cf137637c3c53.zip | |
feat: add -c and -s args to tui command following run command pattern (#1835)
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 654eb0adc..c242a737a 100644 --- a/packages/tui/cmd/opencode/main.go +++ b/packages/tui/cmd/opencode/main.go @@ -32,6 +32,7 @@ func main() { var model *string = flag.String("model", "", "model to begin with") var prompt *string = flag.String("prompt", "", "prompt to begin with") var agent *string = flag.String("agent", "", "agent to begin with") + var sessionID *string = flag.String("session", "", "session ID") flag.Parse() url := os.Getenv("OPENCODE_SERVER") @@ -96,7 +97,7 @@ func main() { }() // Create main context for the application - app_, err := app.New(ctx, version, appInfo, agents, httpClient, model, prompt, agent) + app_, err := app.New(ctx, version, appInfo, agents, httpClient, model, prompt, agent, sessionID) if err != nil { panic(err) } |
