diff options
| author | Dax Raad <[email protected]> | 2025-06-06 23:26:11 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-06 23:26:11 -0400 |
| commit | b34d5c959bd273a39530af398e8dd91f78886e53 (patch) | |
| tree | 58bcc758fb5130aee33e19e5e127c4c0fbe95dfb /packages/tui | |
| parent | 32e6a552c0ded8946126c969083ae53b733be0d8 (diff) | |
| download | opencode-b34d5c959bd273a39530af398e8dd91f78886e53.tar.gz opencode-b34d5c959bd273a39530af398e8dd91f78886e53.zip | |
add go version
Diffstat (limited to 'packages/tui')
| -rw-r--r-- | packages/tui/cmd/opencode/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/tui/cmd/opencode/main.go b/packages/tui/cmd/opencode/main.go index d2809aaea..7a64e3fe0 100644 --- a/packages/tui/cmd/opencode/main.go +++ b/packages/tui/cmd/opencode/main.go @@ -2,6 +2,7 @@ package main import ( "context" + "fmt" "log/slog" "os" "path/filepath" @@ -16,7 +17,10 @@ import ( "github.com/sst/opencode/pkg/client" ) +var Version = "dev" + func main() { + fmt.Println(Version) url := os.Getenv("OPENCODE_SERVER") httpClient, err := client.NewClientWithResponses(url) if err != nil { |
