Skip to content

Commit

Permalink
feat: use gh client for github API requests
Browse files Browse the repository at this point in the history
  • Loading branch information
femnad committed Aug 3, 2024
1 parent 677e20e commit 3503df8
Show file tree
Hide file tree
Showing 7 changed files with 186 additions and 88 deletions.
115 changes: 115 additions & 0 deletions entity/spec.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
package entity

import (
"encoding/json"
"fmt"
"regexp"

"github.com/cli/go-gh/v2/pkg/api"

"github.com/femnad/fup/remote"
)

const (
apiBase = "https://api.github.com"
)

type specResolver struct {
useGHClient bool
}

type githubReleaseResp struct {
TagName string `json:"tag_name"`
}

type githubTagResp struct {
Name string `json:"name"`
}

type ghRequestSpec struct {
lookupSpec VersionLookupSpec
releaseURL string
apiPathSpec string
useGHClient bool
}

func githubRequest[t interface{}](spec ghRequestSpec) (respEntity t, err error) {
repo, err := getRepo(spec.lookupSpec, spec.releaseURL)
if err != nil {
return respEntity, err
}
apiPath := fmt.Sprintf(spec.apiPathSpec, repo)

if spec.useGHClient {
var client *api.RESTClient
client, err = api.DefaultRESTClient()
if err != nil {
return
}

err = client.Get(apiPath, &respEntity)
return
}

url := fmt.Sprintf("%s/%s", apiBase, apiPath)
var resp []byte
resp, err = remote.ReadResponseBytes(url)
if err != nil {
return
}

err = json.Unmarshal(resp, &respEntity)
return

}

func (s specResolver) githubStable(spec VersionLookupSpec, releaseURL string) (string, error) {
release, err := githubRequest[githubReleaseResp](ghRequestSpec{
lookupSpec: spec,
releaseURL: releaseURL,
apiPathSpec: "repos/%s/releases/latest",
useGHClient: s.useGHClient})
if err != nil {
return "", err
}

return release.TagName, nil
}

func (s specResolver) gitHubFirstMatchingTag(spec VersionLookupSpec, releaseURL string) (out string, err error) {
var regex *regexp.Regexp
if spec.MatchRegex != "" {
regex, err = regexp.Compile(spec.MatchRegex)
if err != nil {
return
}
}

tags, err := githubRequest[[]githubTagResp](ghRequestSpec{
lookupSpec: spec,
releaseURL: releaseURL,
apiPathSpec: "repos/%s/releases/latest",
useGHClient: s.useGHClient})
if err != nil {
return
}

for _, tag := range tags {
if regex != nil && !regex.MatchString(tag.Name) {
continue
}

return tag.Name, nil
}

return "", fmt.Errorf("error finding matching tag for spec %+v", spec)
}

func (s specResolver) pypiLatestVersion(spec VersionLookupSpec, pkgName string) (string, error) {
packageURL := fmt.Sprintf("https://pypi.org/project/%s/", pkgName)
lookupSpec := VersionLookupSpec{
Query: "//h1[@class='package-header__name']",
URL: packageURL,
}
return resolveQuery(lookupSpec)
}
2 changes: 1 addition & 1 deletion entity/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func getVersion(v versioned, s settings.Settings) (string, error) {
if lookupId == "" {
return "", fmt.Errorf("lookup ID for versioned %+v is empty", v)
}
return lookupVersion(v.GetVersionLookup(), v.GetLookupID())
return lookupVersion(v.GetVersionLookup(), v.GetLookupID(), s)
}

return "", nil
Expand Down
96 changes: 11 additions & 85 deletions entity/versionlookup.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package entity

import (
"encoding/json"
"fmt"
"regexp"
"strings"
Expand All @@ -10,6 +9,7 @@ import (

"github.com/femnad/fup/internal"
"github.com/femnad/fup/remote"
"github.com/femnad/fup/settings"
)

const (
Expand All @@ -18,22 +18,6 @@ const (
pypiLatestVersion = "pypi-latest"
)

var (
strategies = map[string]func(VersionLookupSpec, string) (string, error){
githubLatestRelease: githubStableSpec,
githubMatchingTag: gitHubFirstMatchingTagSpec,
pypiLatestVersion: pypiLatestVersionSpec,
}
)

type githubReleaseResp struct {
TagName string `json:"tag_name"`
}

type githubTagResp struct {
Name string `json:"name"`
}

type VersionLookupSpec struct {
ExcludeSuffix []string `yaml:"exclude_suffix"`
FollowURL bool `yaml:"follow_url"`
Expand Down Expand Up @@ -120,72 +104,14 @@ func getRepo(spec VersionLookupSpec, releaseURL string) (string, error) {
return repo, nil
}

func fetchGithubResp(spec VersionLookupSpec, releaseURL, urlSpec string) (resp []byte, err error) {
repo, err := getRepo(spec, releaseURL)
if err != nil {
return
}

apiURL := fmt.Sprintf(urlSpec, repo)
return remote.ReadResponseBytes(apiURL)
}

func githubStableSpec(spec VersionLookupSpec, releaseURL string) (string, error) {
resp, err := fetchGithubResp(spec, releaseURL, "https://api.github.com/repos/%s/releases/latest")
if err != nil {
return "", err
}

var release githubReleaseResp
err = json.Unmarshal(resp, &release)
if err != nil {
return "", err
}

return release.TagName, nil
}

func gitHubFirstMatchingTagSpec(spec VersionLookupSpec, releaseURL string) (string, error) {
resp, err := fetchGithubResp(spec, releaseURL, "https://api.github.com/repos/%s/tags")
if err != nil {
return "", err
}

var tags []githubTagResp
err = json.Unmarshal(resp, &tags)
if err != nil {
return "", err
}

var regex *regexp.Regexp
if spec.MatchRegex != "" {
regex, err = regexp.Compile(spec.MatchRegex)
if err != nil {
return "", err
}
}

for _, tag := range tags {
if regex != nil && !regex.MatchString(tag.Name) {
continue
}

return tag.Name, nil
func queryFromStrategy(spec VersionLookupSpec, assetURL string, s settings.Settings) (string, error) {
resolver := specResolver{useGHClient: s.Internal.GhAvailable}
strategies := map[string]func(VersionLookupSpec, string) (string, error){
githubLatestRelease: resolver.githubStable,
githubMatchingTag: resolver.gitHubFirstMatchingTag,
pypiLatestVersion: resolver.pypiLatestVersion,
}

return "", fmt.Errorf("error finding matching tag for spec %+v", spec)
}

func pypiLatestVersionSpec(spec VersionLookupSpec, pkgName string) (string, error) {
packageURL := fmt.Sprintf("https://pypi.org/project/%s/", pkgName)
lookupSpec := VersionLookupSpec{
Query: "//h1[@class='package-header__name']",
URL: packageURL,
}
return resolveQuery(lookupSpec)
}

func queryFromStrategy(spec VersionLookupSpec, assetURL string) (string, error) {
fn, ok := strategies[spec.Strategy]
if !ok {
return "", fmt.Errorf("no such strategy %s", spec.Strategy)
Expand All @@ -194,10 +120,10 @@ func queryFromStrategy(spec VersionLookupSpec, assetURL string) (string, error)
return fn(spec, assetURL)
}

func versionFromSpec(spec VersionLookupSpec, assetURL string) (text string, err error) {
func versionFromSpec(spec VersionLookupSpec, assetURL string, s settings.Settings) (text string, err error) {
var version string
if spec.Strategy != "" {
version, err = queryFromStrategy(spec, assetURL)
version, err = queryFromStrategy(spec, assetURL, s)
if err != nil {
return "", err
}
Expand All @@ -221,8 +147,8 @@ func versionFromSpec(spec VersionLookupSpec, assetURL string) (text string, err
return
}

func lookupVersion(spec VersionLookupSpec, assetURL string) (version string, err error) {
version, err = versionFromSpec(spec, assetURL)
func lookupVersion(spec VersionLookupSpec, assetURL string, s settings.Settings) (version string, err error) {
version, err = versionFromSpec(spec, assetURL, s)
if err != nil {
return "", err
}
Expand Down
14 changes: 13 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,24 +22,36 @@ require (
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/alexflint/go-scalar v1.1.0 // indirect
github.com/antchfx/xpath v1.2.3 // indirect
github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect
github.com/cli/go-gh/v2 v2.9.0 // indirect
github.com/cli/safeexec v1.0.0 // indirect
github.com/cli/shurcooL-graphql v0.0.4 // indirect
github.com/cloudflare/circl v1.3.3 // indirect
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.5.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
github.com/henvic/httpretty v0.0.6 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/go-runewidth v0.0.15 // indirect
github.com/muesli/termenv v0.15.2 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/skeema/knownhosts v1.2.1 // indirect
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
golang.org/x/crypto v0.16.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/sys v0.19.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/tools v0.13.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)
28 changes: 28 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@ github.com/antchfx/xpath v1.2.3 h1:CCZWOzv5bAqjVv0offZ2LVgVYFbeldKQVuLNbViZdes=
github.com/antchfx/xpath v1.2.3/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k=
github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8=
github.com/bwesterb/go-ristretto v1.2.0/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/cli/go-gh/v2 v2.9.0 h1:D3lTjEneMYl54M+WjZ+kRPrR5CEJ5BHS05isBPOV3LI=
github.com/cli/go-gh/v2 v2.9.0/go.mod h1:MeRoKzXff3ygHu7zP+NVTT+imcHW6p3tpuxHAzRM2xE=
github.com/cli/safeexec v1.0.0 h1:0VngyaIyqACHdcMNWfo6+KdUYnqEr2Sg+bSP1pdF+dI=
github.com/cli/safeexec v1.0.0/go.mod h1:Z/D4tTN8Vs5gXYHDCbaM1S/anmEDnJb1iW0+EJ5zx3Q=
github.com/cli/shurcooL-graphql v0.0.4 h1:6MogPnQJLjKkaXPyGqPRXOI2qCsQdqNfUY1QSJu2GuY=
github.com/cli/shurcooL-graphql v0.0.4/go.mod h1:3waN4u02FiZivIV+p1y4d0Jo1jc6BViMA73C+sZo2fk=
github.com/cloudflare/circl v1.1.0 h1:bZgT/A+cikZnKIwn7xL2OBj012Bmvho/o6RpRvv3GKY=
github.com/cloudflare/circl v1.1.0/go.mod h1:prBCrKB9DV4poKZY1l9zBXg2QJY7mvgRvtMxxK7fi4I=
github.com/cloudflare/circl v1.3.3 h1:fE/Qz0QdIGqeWfnwq0RE0R7MI51s0M2E4Ga9kq5AEMs=
Expand Down Expand Up @@ -68,6 +76,8 @@ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4=
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ=
github.com/henvic/httpretty v0.0.6 h1:JdzGzKZBajBfnvlMALXXMVQWxWMF/ofTy8C3/OSUTxs=
github.com/henvic/httpretty v0.0.6/go.mod h1:X38wLjWXHkXT7r2+uK8LjCMne9rsuNaBLJ+5cU2/Pmo=
github.com/imdario/mergo v0.3.13 h1:lFzP57bqS/wsqKssCGmtLAb8A0wKjLGrve2q3PPVcBk=
github.com/imdario/mergo v0.3.13/go.mod h1:4lJ1jqUDcsbIECGy0RUJAXNIhg+6ocWgb1ALK2O4oXg=
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
Expand All @@ -82,8 +92,16 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A=
github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U=
github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=
github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo=
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno=
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88=
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
Expand All @@ -95,6 +113,9 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ=
github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
Expand All @@ -107,6 +128,8 @@ github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXf
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e h1:BuzhfgfWQbX0dWzYzT1zsORLnHRv3bcRcsaUk0VmXA8=
github.com/thlib/go-timezone-local v0.0.0-20210907160436-ef149e42d28e/go.mod h1:/Tnicc6m/lsJE0irFMA0LfIwTBo4QP7A8IfyIv4zZKI=
github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8=
github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
Expand Down Expand Up @@ -152,6 +175,7 @@ golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7w
golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand All @@ -167,6 +191,8 @@ golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o=
golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.0.0-20220722155259-a9ba230a4035/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
Expand All @@ -176,6 +202,8 @@ golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek=
golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U=
golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
Expand Down
Loading

0 comments on commit 3503df8

Please sign in to comment.