add go version

This commit is contained in:
Dax Raad
2025-06-06 23:26:11 -04:00
parent 32e6a552c0
commit b34d5c959b
2 changed files with 5 additions and 1 deletions

View File

@@ -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 {