cmd: open browser on ollama signin when available (#14055)

When a browser is available open it to the connect URL automatically when running the `ollama signin` command. Browser is not opened in any other unauthorized scenario.
This commit is contained in:
Bruce MacDonald
2026-02-03 16:42:09 -08:00
committed by GitHub
parent 0398b24b42
commit a6355329bf
3 changed files with 7 additions and 1 deletions

1
go.mod
View File

@@ -27,6 +27,7 @@ require (
github.com/mattn/go-runewidth v0.0.14
github.com/nlpodyssey/gopickle v0.3.0
github.com/pdevine/tensor v0.0.0-20240510204454-f88f4562727c
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
github.com/tkrajina/typescriptify-golang-structs v0.2.0
github.com/wk8/go-ordered-map/v2 v2.1.8
golang.org/x/image v0.22.0