Migrate from github.com/charmbracelet/huh v1 to charm.land/huh/v2, updating ThemeBase16 to the new ThemeFunc API. Fix selected options being lost across searches in the huhPrompter's MultiSelectWithSearch. The root cause was huh's internal Eval cache: when the user returned to a previously-seen search query, cached options with stale .selected state overwrote the current selections via updateValue(). The fix includes selectedValues in the OptionsFunc binding hash (via searchOptionsBinding) so the cache key changes whenever selections change, preventing stale cache hits. A local searchFunc result cache avoids redundant API calls when only the selection state (not the query) has changed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
191 lines
9.1 KiB
Modula-2
191 lines
9.1 KiB
Modula-2
module github.com/cli/cli/v2
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
charm.land/huh/v2 v2.0.3
|
|
github.com/AlecAivazis/survey/v2 v2.3.7
|
|
github.com/MakeNowJust/heredoc v1.0.0
|
|
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2
|
|
github.com/atotto/clipboard v0.1.4
|
|
github.com/briandowns/spinner v1.23.2
|
|
github.com/cenkalti/backoff/v4 v4.3.0
|
|
github.com/cenkalti/backoff/v5 v5.0.3
|
|
github.com/charmbracelet/glamour v0.10.0
|
|
github.com/charmbracelet/lipgloss v1.1.1-0.20250404203927-76690c660834
|
|
github.com/cli/go-gh/v2 v2.13.0
|
|
github.com/cli/go-internal v0.0.0-20241025142207-6c48bcd5ce24
|
|
github.com/cli/oauth v1.2.2
|
|
github.com/cli/safeexec v1.0.1
|
|
github.com/cpuguy83/go-md2man/v2 v2.0.7
|
|
github.com/creack/pty v1.1.24
|
|
github.com/digitorus/timestamp v0.0.0-20250524132541-c45532741eea
|
|
github.com/distribution/reference v0.6.0
|
|
github.com/gabriel-vasile/mimetype v1.4.13
|
|
github.com/gdamore/tcell/v2 v2.13.8
|
|
github.com/golang/snappy v1.0.0
|
|
github.com/google/go-cmp v0.7.0
|
|
github.com/google/go-containerregistry v0.21.3
|
|
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
|
|
github.com/gorilla/websocket v1.5.3
|
|
github.com/hashicorp/go-version v1.8.0
|
|
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec
|
|
github.com/in-toto/attestation v1.1.2
|
|
github.com/joho/godotenv v1.5.1
|
|
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
|
|
github.com/mattn/go-colorable v0.1.14
|
|
github.com/mattn/go-isatty v0.0.20
|
|
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
|
|
github.com/microsoft/dev-tunnels v0.1.19
|
|
github.com/muhammadmuzzammil1998/jsonc v1.0.0
|
|
github.com/opentracing/opentracing-go v1.2.0
|
|
github.com/rivo/tview v0.42.0
|
|
github.com/shurcooL/githubv4 v0.0.0-20240727222349-48295856cce7
|
|
github.com/sigstore/protobuf-specs v0.5.0
|
|
github.com/sigstore/sigstore-go v1.1.4
|
|
github.com/spf13/cobra v1.10.2
|
|
github.com/spf13/pflag v1.0.10
|
|
github.com/stretchr/testify v1.11.1
|
|
github.com/theupdateframework/go-tuf/v2 v2.4.1
|
|
github.com/vmihailenco/msgpack/v5 v5.4.1
|
|
github.com/yuin/goldmark v1.7.16
|
|
github.com/zalando/go-keyring v0.2.8
|
|
golang.org/x/crypto v0.49.0
|
|
golang.org/x/sync v0.20.0
|
|
golang.org/x/term v0.41.0
|
|
golang.org/x/text v0.35.0
|
|
google.golang.org/grpc v1.79.3
|
|
google.golang.org/protobuf v1.36.11
|
|
gopkg.in/h2non/gock.v1 v1.1.2
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
charm.land/bubbles/v2 v2.0.0 // indirect
|
|
charm.land/bubbletea/v2 v2.0.2 // indirect
|
|
charm.land/lipgloss/v2 v2.0.2 // indirect
|
|
dario.cat/mergo v1.0.2 // indirect
|
|
github.com/Masterminds/goutils v1.1.1 // indirect
|
|
github.com/Masterminds/semver/v3 v3.4.0 // indirect
|
|
github.com/Masterminds/sprig/v3 v3.3.0 // indirect
|
|
github.com/alecthomas/chroma/v2 v2.19.0 // indirect
|
|
github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
|
|
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
|
|
github.com/aymerick/douceur v0.2.0 // indirect
|
|
github.com/blang/semver v3.5.1+incompatible // indirect
|
|
github.com/catppuccin/go v0.3.0 // indirect
|
|
github.com/cespare/xxhash/v2 v2.3.0 // indirect
|
|
github.com/charmbracelet/colorprofile v0.4.2 // indirect
|
|
github.com/charmbracelet/ultraviolet v0.0.0-20260205113103-524a6607adb8 // indirect
|
|
github.com/charmbracelet/x/ansi v0.11.6 // indirect
|
|
github.com/charmbracelet/x/cellbuf v0.0.15 // indirect
|
|
github.com/charmbracelet/x/exp/ordered v0.1.0 // indirect
|
|
github.com/charmbracelet/x/exp/slice v0.0.0-20250630141444-821143405392 // indirect
|
|
github.com/charmbracelet/x/exp/strings v0.0.0-20250630141444-821143405392 // indirect
|
|
github.com/charmbracelet/x/term v0.2.2 // indirect
|
|
github.com/charmbracelet/x/termios v0.1.1 // indirect
|
|
github.com/charmbracelet/x/windows v0.2.2 // indirect
|
|
github.com/cli/browser v1.3.0 // indirect
|
|
github.com/cli/shurcooL-graphql v0.0.4 // indirect
|
|
github.com/clipperhouse/displaywidth v0.11.0 // indirect
|
|
github.com/clipperhouse/uax29/v2 v2.7.0 // indirect
|
|
github.com/containerd/stargz-snapshotter/estargz v0.18.2 // indirect
|
|
github.com/cyberphone/json-canonicalization v0.0.0-20241213102144-19d51d7fe467 // indirect
|
|
github.com/danieljoos/wincred v1.2.3 // indirect
|
|
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
|
|
github.com/digitorus/pkcs7 v0.0.0-20230818184609-3a137a874352 // indirect
|
|
github.com/dlclark/regexp2 v1.11.5 // indirect
|
|
github.com/docker/cli v29.3.0+incompatible // indirect
|
|
github.com/docker/distribution v2.8.3+incompatible // indirect
|
|
github.com/docker/docker-credential-helpers v0.9.3 // indirect
|
|
github.com/dustin/go-humanize v1.0.1 // indirect
|
|
github.com/fatih/color v1.18.0 // indirect
|
|
github.com/gdamore/encoding v1.0.1 // indirect
|
|
github.com/go-logr/logr v1.4.3 // indirect
|
|
github.com/go-logr/stdr v1.2.2 // indirect
|
|
github.com/go-openapi/analysis v0.24.1 // indirect
|
|
github.com/go-openapi/errors v0.22.6 // indirect
|
|
github.com/go-openapi/jsonpointer v0.22.4 // indirect
|
|
github.com/go-openapi/jsonreference v0.21.4 // indirect
|
|
github.com/go-openapi/loads v0.23.2 // indirect
|
|
github.com/go-openapi/runtime v0.29.2 // indirect
|
|
github.com/go-openapi/spec v0.22.3 // indirect
|
|
github.com/go-openapi/strfmt v0.25.0 // indirect
|
|
github.com/go-openapi/swag v0.25.4 // indirect
|
|
github.com/go-openapi/swag/cmdutils v0.25.4 // indirect
|
|
github.com/go-openapi/swag/conv v0.25.4 // indirect
|
|
github.com/go-openapi/swag/fileutils v0.25.4 // indirect
|
|
github.com/go-openapi/swag/jsonname v0.25.4 // indirect
|
|
github.com/go-openapi/swag/jsonutils v0.25.4 // indirect
|
|
github.com/go-openapi/swag/loading v0.25.4 // indirect
|
|
github.com/go-openapi/swag/mangling v0.25.4 // indirect
|
|
github.com/go-openapi/swag/netutils v0.25.4 // indirect
|
|
github.com/go-openapi/swag/stringutils v0.25.4 // indirect
|
|
github.com/go-openapi/swag/typeutils v0.25.4 // indirect
|
|
github.com/go-openapi/swag/yamlutils v0.25.4 // indirect
|
|
github.com/go-openapi/validate v0.25.1 // indirect
|
|
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
|
|
github.com/godbus/dbus/v5 v5.2.2 // indirect
|
|
github.com/google/certificate-transparency-go v1.3.2 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/gorilla/css v1.0.1 // indirect
|
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.27.3 // indirect
|
|
github.com/h2non/parth v0.0.0-20190131123155-b4df798d6542 // indirect
|
|
github.com/henvic/httpretty v0.1.4 // indirect
|
|
github.com/huandu/xstrings v1.5.0 // indirect
|
|
github.com/in-toto/in-toto-golang v0.9.0 // indirect
|
|
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
|
github.com/itchyny/gojq v0.12.17 // indirect
|
|
github.com/itchyny/timefmt-go v0.1.6 // indirect
|
|
github.com/jedisct1/go-minisign v0.0.0-20241212093149-d2f9f49435c7 // indirect
|
|
github.com/klauspost/compress v1.18.4 // indirect
|
|
github.com/lucasb-eyer/go-colorful v1.3.0 // indirect
|
|
github.com/mattn/go-runewidth v0.0.20 // indirect
|
|
github.com/microcosm-cc/bluemonday v1.0.27 // indirect
|
|
github.com/mitchellh/copystructure v1.2.0 // indirect
|
|
github.com/mitchellh/go-homedir v1.1.0 // indirect
|
|
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
|
|
github.com/mitchellh/reflectwalk v1.0.2 // indirect
|
|
github.com/muesli/cancelreader v0.2.2 // indirect
|
|
github.com/muesli/reflow v0.3.0 // indirect
|
|
github.com/muesli/termenv v0.16.0 // indirect
|
|
github.com/oklog/ulid v1.3.1 // indirect
|
|
github.com/opencontainers/go-digest v1.0.0 // indirect
|
|
github.com/opencontainers/image-spec v1.1.1 // indirect
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
|
|
github.com/rivo/uniseg v0.4.7 // indirect
|
|
github.com/rodaine/table v1.3.0 // indirect
|
|
github.com/russross/blackfriday/v2 v2.1.0 // indirect
|
|
github.com/secure-systems-lab/go-securesystemslib v0.10.0 // indirect
|
|
github.com/shibumi/go-pathspec v1.3.0 // indirect
|
|
github.com/shopspring/decimal v1.4.0 // indirect
|
|
github.com/shurcooL/graphql v0.0.0-20230722043721-ed46e5a46466 // indirect
|
|
github.com/sigstore/rekor v1.5.0 // indirect
|
|
github.com/sigstore/rekor-tiles/v2 v2.0.1 // indirect
|
|
github.com/sigstore/sigstore v1.10.4 // indirect
|
|
github.com/sigstore/timestamp-authority/v2 v2.0.3 // indirect
|
|
github.com/sirupsen/logrus v1.9.4 // indirect
|
|
github.com/spf13/cast v1.10.0 // indirect
|
|
github.com/stretchr/objx v0.5.2 // indirect
|
|
github.com/thlib/go-timezone-local v0.0.6 // indirect
|
|
github.com/transparency-dev/formats v0.0.0-20251017110053-404c0d5b696c // indirect
|
|
github.com/transparency-dev/merkle v0.0.2 // indirect
|
|
github.com/vbatts/tar-split v0.12.2 // indirect
|
|
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
|
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
|
github.com/yuin/goldmark-emoji v1.0.6 // indirect
|
|
go.mongodb.org/mongo-driver v1.17.6 // indirect
|
|
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
|
|
go.opentelemetry.io/otel v1.39.0 // indirect
|
|
go.opentelemetry.io/otel/metric v1.39.0 // indirect
|
|
go.opentelemetry.io/otel/trace v1.39.0 // indirect
|
|
go.yaml.in/yaml/v3 v3.0.4 // indirect
|
|
golang.org/x/mod v0.34.0 // indirect
|
|
golang.org/x/net v0.52.0 // indirect
|
|
golang.org/x/sys v0.42.0 // indirect
|
|
golang.org/x/tools v0.43.0 // indirect
|
|
google.golang.org/genproto/googleapis/api v0.0.0-20251202230838-ff82c1b0f217 // indirect
|
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20251222181119-0a764e51fe1b // indirect
|
|
gotest.tools/v3 v3.5.2 // indirect
|
|
)
|