diff --git a/cmd/client-admin.go b/cmd/client-admin.go index 568e96ee..1ba65c99 100644 --- a/cmd/client-admin.go +++ b/cmd/client-admin.go @@ -24,7 +24,6 @@ import ( "net" "net/http" "net/url" - "os" "sync" "time" @@ -146,9 +145,6 @@ func newAdminClient(aliasedURL string) (*madmin.AdminClient, *probe.Error) { if err != nil { return nil, err.Trace(alias, urlStrFull) } - if globalDebug { - s3Client.TraceOn(os.Stdout) - } return s3Client, nil } diff --git a/cmd/globals.go b/cmd/globals.go index 4355dacf..d970dbae 100644 --- a/cmd/globals.go +++ b/cmd/globals.go @@ -25,6 +25,7 @@ import ( "time" "github.com/minio/cli" + "github.com/minio/madmin-go" "github.com/minio/pkg/console" ) @@ -57,15 +58,16 @@ const ( ) var ( - globalQuiet = false // Quiet flag set via command line - globalJSON = false // Json flag set via command line - globalJSONLine = false // Print json as single line. - globalDebug = false // Debug flag set via command line - globalNoColor = false // No Color flag set via command line - globalInsecure = false // Insecure flag set via command line - globalDevMode = false // dev flag set via command line - globalSubnetProxyURL *url.URL // Proxy to be used for communication with subnet - globalAirgapped = false // Airgapped flag set via command line + globalQuiet = false // Quiet flag set via command line + globalJSON = false // Json flag set via command line + globalJSONLine = false // Print json as single line. + globalDebug = false // Debug flag set via command line + globalNoColor = false // No Color flag set via command line + globalInsecure = false // Insecure flag set via command line + globalDevMode = false // dev flag set via command line + globalAirgapped = false // Airgapped flag set via command line + globalSubnetProxyURL *url.URL // Proxy to be used for communication with subnet + globalSubnetConfig []madmin.SubsysConfig // Subnet config globalConnReadDeadline time.Duration globalConnWriteDeadline time.Duration diff --git a/cmd/license-info.go b/cmd/license-info.go index eedde91f..1c990437 100644 --- a/cmd/license-info.go +++ b/cmd/license-info.go @@ -19,15 +19,17 @@ package cmd import ( "fmt" - "strings" + "net/http" "time" + "github.com/charmbracelet/bubbles/table" + tea "github.com/charmbracelet/bubbletea" + "github.com/charmbracelet/lipgloss" "github.com/fatih/color" "github.com/minio/cli" json "github.com/minio/colorjson" "github.com/minio/mc/pkg/probe" "github.com/minio/pkg/console" - "github.com/olekukonko/tablewriter" ) var licenseInfoCmd = cli.Command{ @@ -60,6 +62,24 @@ const ( licInfoValTag = "licenseValueField" ) +type liTableModel struct { + table table.Model +} + +func (m liTableModel) Init() tea.Cmd { return nil } + +func (m liTableModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) { + var cmd tea.Cmd + m.table, cmd = m.table.Update(msg) + return m, cmd +} + +func (m liTableModel) View() string { + return lipgloss.NewStyle(). + BorderStyle(lipgloss.NormalBorder()). + BorderForeground(lipgloss.Color("240")).Render(m.table.View()) +} + type licInfoMessage struct { Status string `json:"status"` Info licInfo `json:"info,omitempty"` @@ -67,12 +87,14 @@ type licInfoMessage struct { } type licInfo struct { + LicenseID string `json:"license_id,omitempty"` // Unique ID of the license Organization string `json:"org,omitempty"` // Subnet organization name Plan string `json:"plan,omitempty"` // Subnet plan IssuedAt *time.Time `json:"issued_at,omitempty"` // Time of license issue ExpiresAt *time.Time `json:"expires_at,omitempty"` // Time of license expiry DeploymentID string `json:"deployment_id,omitempty"` // Cluster deployment ID Message string `json:"message,omitempty"` // Message to be displayed + APIKey string `json:"api_key,omitempty"` // API Key of the org account } func licInfoField(s string) string { @@ -101,7 +123,7 @@ func (li licInfoMessage) String() string { return licInfoMsg(li.Info.Message) } - return licInfoMsg(getLicInfoStr(li.Info)) + return getLicInfoStr(li.Info) } // JSON jsonified license info @@ -113,36 +135,55 @@ func (li licInfoMessage) JSON() string { } func getLicInfoStr(li licInfo) string { - var s strings.Builder - - s.WriteString(color.WhiteString("")) - table := tablewriter.NewWriter(&s) - table.SetAutoWrapText(false) - table.SetHeaderAlignment(tablewriter.ALIGN_LEFT) - table.SetAlignment(tablewriter.ALIGN_LEFT) - table.SetBorder(true) - table.SetRowLine(false) - - data := [][]string{ - {licInfoField("Organization"), licInfoVal(li.Organization)}, - {licInfoField("Deployment ID"), licInfoVal(li.DeploymentID)}, - {licInfoField("Plan"), licInfoVal(li.Plan)}, - {licInfoField("Issued at"), licInfoVal(li.IssuedAt.String())}, - {licInfoField("Expires at"), licInfoVal(li.ExpiresAt.String())}, + columns := []table.Column{ + {Title: "License", Width: 20}, + {Title: "", Width: 45}, } - table.AppendBulk(data) - table.Render() - return s.String() + rows := []table.Row{ + {licInfoField("Organization"), licInfoVal(li.Organization)}, + {licInfoField("Plan"), licInfoVal(li.Plan)}, + {licInfoField("Issued"), licInfoVal(li.IssuedAt.Format(http.TimeFormat))}, + {licInfoField("Expires"), licInfoVal(li.ExpiresAt.Format(http.TimeFormat))}, + } + + if len(li.LicenseID) > 0 { + rows = append(rows, table.Row{licInfoField("License ID"), licInfoVal(li.LicenseID)}) + } + if len(li.DeploymentID) > 0 { + rows = append(rows, table.Row{licInfoField("Deployment ID"), licInfoVal(li.DeploymentID)}) + } + if len(li.APIKey) > 0 { + rows = append(rows, table.Row{licInfoField("API Key"), licInfoVal(li.APIKey)}) + } + + t := table.New( + table.WithColumns(columns), + table.WithRows(rows), + table.WithFocused(true), + table.WithHeight(len(rows)), + ) + + s := table.DefaultStyles() + s.Header = s.Header. + BorderStyle(lipgloss.NormalBorder()). + BorderForeground(lipgloss.Color("240")). + BorderBottom(true). + Bold(false) + s.Selected = s.Selected.Bold(false) + + t.SetStyles(s) + p := tea.NewProgram(liTableModel{t}) + go p.Start() + time.Sleep(time.Second) // allow time for the table to be rendered + p.Quit() + + return "" } func getAGPLMessage() string { - return `You are using GNU AFFERO GENERAL PUBLIC LICENSE Verson 3 (https://www.gnu.org/licenses/agpl-3.0.txt) - -If you are building proprietary applications, you may want to choose the commercial license -included as part of the Standard and Enterprise subscription plans. (https://min.io/signup?ref=mc) - -Applications must otherwise comply with all the GNU AGPLv3 License & Trademark obligations.` + return `License: GNU AGPL v3 +If you are distributing or hosting MinIO along with your proprietary application as combined works, you may require a commercial license included in the Standard and Enterprise subscription plans. (https://min.io/signup?ref=mc)` } func initLicInfoColors() { @@ -160,7 +201,7 @@ func mainLicenseInfo(ctx *cli.Context) error { initLicInfoColors() aliasedURL := ctx.Args().Get(0) - alias, _ := initSubnetConnectivity(ctx, aliasedURL) + alias, _ := initSubnetConnectivity(ctx, aliasedURL, false) apiKey, lic, e := getSubnetCreds(alias) fatalIf(probe.NewError(e), "Error in checking cluster registration status") @@ -198,11 +239,13 @@ func getLicInfoMsg(lic string) licInfoMessage { return licInfoMessage{ Status: "success", Info: licInfo{ + LicenseID: li.LicenseID, Organization: li.Organization, Plan: li.Plan, IssuedAt: &li.IssuedAt, ExpiresAt: &li.ExpiresAt, DeploymentID: li.DeploymentID, + APIKey: li.APIKey, }, } } diff --git a/cmd/license-register.go b/cmd/license-register.go index 2769946d..a16c146a 100644 --- a/cmd/license-register.go +++ b/cmd/license-register.go @@ -156,7 +156,7 @@ func mainLicenseRegister(ctx *cli.Context) error { // Get the alias parameter from cli aliasedURL := ctx.Args().Get(0) - alias, accAPIKey := initSubnetConnectivity(ctx, aliasedURL) + alias, accAPIKey := initSubnetConnectivity(ctx, aliasedURL, true) clusterName := ctx.String("name") if len(clusterName) == 0 { diff --git a/cmd/license-update.go b/cmd/license-update.go index aeaa1edf..b61aa09c 100644 --- a/cmd/license-update.go +++ b/cmd/license-update.go @@ -80,7 +80,7 @@ func mainLicenseUpdate(ctx *cli.Context) error { console.SetColor(licUpdateMsgTag, color.New(color.FgGreen, color.Bold)) aliasedURL := ctx.Args().Get(0) - alias, _ := url2Alias(aliasedURL) + alias, _ := initSubnetConnectivity(ctx, aliasedURL, false) licFile := ctx.Args().Get(1) diff --git a/cmd/subnet-utils.go b/cmd/subnet-utils.go index 17e5e44d..225efb95 100644 --- a/cmd/subnet-utils.go +++ b/cmd/subnet-utils.go @@ -229,13 +229,24 @@ func getMinIOSubSysConfig(client *madmin.AdminClient, subSys string) ([]madmin.S return madmin.ParseServerConfigOutput(string(buf)) } -func getKeyFromMinIOConfig(alias string, subSys string, key string) (string, bool) { +func getMinIOSubnetConfig(alias string) []madmin.SubsysConfig { + if globalSubnetConfig != nil { + return globalSubnetConfig + } + client, err := newAdminClient(alias) fatalIf(err, "Unable to initialize admin connection.") - scfg, e := getMinIOSubSysConfig(client, subSys) + var e error + globalSubnetConfig, e = getMinIOSubSysConfig(client, madmin.SubnetSubSys) fatalIf(probe.NewError(e), "Unable to get server config for subnet") + return globalSubnetConfig +} + +func getKeyFromSubnetConfig(alias string, key string) (string, bool) { + scfg := getMinIOSubnetConfig(alias) + // This function only works for fetch config from single target sub-systems // in the server config and is enough for now. if len(scfg) == 0 { @@ -247,7 +258,7 @@ func getKeyFromMinIOConfig(alias string, subSys string, key string) (string, boo func getSubnetAPIKeyFromConfig(alias string) string { // get the subnet api_key config from MinIO if available - apiKey, supported := getKeyFromMinIOConfig(alias, madmin.SubnetSubSys, "api_key") + apiKey, supported := getKeyFromSubnetConfig(alias, "api_key") if supported { return apiKey } @@ -263,7 +274,7 @@ func setGlobalSubnetProxyFromConfig(alias string) error { } // get the subnet proxy config from MinIO if available - proxy, supported := getKeyFromMinIOConfig(alias, madmin.SubnetSubSys, "proxy") + proxy, supported := getKeyFromSubnetConfig(alias, "proxy") if supported && len(proxy) > 0 { proxyURL, e := url.Parse(proxy) if e != nil { @@ -276,7 +287,7 @@ func setGlobalSubnetProxyFromConfig(alias string) error { func getSubnetLicenseFromConfig(alias string) string { // get the subnet license config from MinIO if available - lic, supported := getKeyFromMinIOConfig(alias, madmin.SubnetSubSys, "license") + lic, supported := getKeyFromSubnetConfig(alias, "license") if supported { return lic } @@ -336,7 +347,7 @@ func setSubnetAPIKey(alias string, apiKey string) { fatal(errDummy().Trace(), "API Key must not be empty.") } - _, apiKeySupported := getKeyFromMinIOConfig(alias, madmin.SubnetSubSys, "api_key") + _, apiKeySupported := getKeyFromSubnetConfig(alias, "api_key") if !apiKeySupported { setSubnetAPIKeyInMcConfig(alias, apiKey) return @@ -350,7 +361,7 @@ func setSubnetLicense(alias string, lic string) { fatal(errDummy().Trace(), "License must not be empty.") } - _, licSupported := getKeyFromMinIOConfig(alias, madmin.SubnetSubSys, "license") + _, licSupported := getKeyFromSubnetConfig(alias, "license") if !licSupported { setSubnetLicenseInMcConfig(alias, lic) return @@ -693,8 +704,8 @@ func getAPIKeyFlag(ctx *cli.Context) (string, error) { return apiKey, nil } -func initSubnetConnectivity(ctx *cli.Context, aliasedURL string) (string, string) { - e := validateSubnetFlags(ctx) +func initSubnetConnectivity(ctx *cli.Context, aliasedURL string, forUpload bool) (string, string) { + e := validateSubnetFlags(ctx, forUpload) fatalIf(probe.NewError(e), "Invalid flags:") alias, _ := url2Alias(aliasedURL) @@ -714,9 +725,9 @@ func initSubnetConnectivity(ctx *cli.Context, aliasedURL string) (string, string return alias, apiKey } -func validateSubnetFlags(ctx *cli.Context) error { +func validateSubnetFlags(ctx *cli.Context, forUpload bool) error { if !globalAirgapped { - if globalJSON { + if globalJSON && forUpload { return errors.New("--json is applicable only when --airgap is also passed") } return nil diff --git a/cmd/support-diag.go b/cmd/support-diag.go index 17fe3053..72146b1a 100644 --- a/cmd/support-diag.go +++ b/cmd/support-diag.go @@ -159,7 +159,7 @@ func mainSupportDiag(ctx *cli.Context) error { // Get the alias parameter from cli aliasedURL := ctx.Args().Get(0) - alias, apiKey := initSubnetConnectivity(ctx, aliasedURL) + alias, apiKey := initSubnetConnectivity(ctx, aliasedURL, true) if len(apiKey) == 0 { // api key not passed as flag. Check that the cluster is registered. apiKey = validateClusterRegistered(alias, true) diff --git a/cmd/support-perf.go b/cmd/support-perf.go index 90a001d0..464630de 100644 --- a/cmd/support-perf.go +++ b/cmd/support-perf.go @@ -175,7 +175,7 @@ func mainSupportPerf(ctx *cli.Context) error { } func execSupportPerf(ctx *cli.Context, aliasedURL string, perfType string) { - alias, apiKey := initSubnetConnectivity(ctx, aliasedURL) + alias, apiKey := initSubnetConnectivity(ctx, aliasedURL, true) if len(apiKey) == 0 { // api key not passed as flag. Check that the cluster is registered. apiKey = validateClusterRegistered(alias, true) diff --git a/cmd/support-profile.go b/cmd/support-profile.go index 19a22c11..2aea0f26 100644 --- a/cmd/support-profile.go +++ b/cmd/support-profile.go @@ -168,7 +168,7 @@ func mainSupportProfile(ctx *cli.Context) error { // Get the alias parameter from cli aliasedURL := ctx.Args().Get(0) - alias, apiKey := initSubnetConnectivity(ctx, aliasedURL) + alias, apiKey := initSubnetConnectivity(ctx, aliasedURL, true) if len(apiKey) == 0 { // api key not passed as flag. Check that the cluster is registered. apiKey = validateClusterRegistered(alias, true) diff --git a/go.mod b/go.mod index dfeb4898..a737a81c 100644 --- a/go.mod +++ b/go.mod @@ -22,7 +22,7 @@ require ( github.com/minio/madmin-go v1.6.4 github.com/minio/md5-simd v1.1.2 // indirect github.com/minio/minio-go/v7 v7.0.40-0.20220928095841-8848d8affe8a - github.com/minio/pkg v1.4.5 + github.com/minio/pkg v1.5.3 github.com/minio/selfupdate v0.4.0 github.com/minio/sha256-simd v1.0.0 github.com/mitchellh/go-homedir v1.1.0 @@ -44,8 +44,8 @@ require ( ) require ( - github.com/charmbracelet/bubbles v0.10.0 - github.com/charmbracelet/lipgloss v0.4.1-0.20220204041308-bf2912e703f6 + github.com/charmbracelet/bubbles v0.14.0 + github.com/charmbracelet/lipgloss v0.5.0 github.com/gdamore/tcell/v2 v2.4.1-0.20210905002822-f057f0a857a1 github.com/golang-jwt/jwt/v4 v4.4.1 github.com/muesli/reflow v0.3.0 diff --git a/go.sum b/go.sum index 83326b7c..4f188ca8 100644 --- a/go.sum +++ b/go.sum @@ -49,7 +49,7 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/atotto/clipboard v0.1.2/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= +github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= @@ -62,15 +62,14 @@ github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= -github.com/charmbracelet/bubbles v0.10.0 h1:ZYqBwnmFGp91HSRRbhxKq5jr6bUPsVUBdkrGGWtv0Wk= -github.com/charmbracelet/bubbles v0.10.0/go.mod h1:4tiDrWzH1MTD4t5NnrcthaedmI3MxU0FIutax7//dvk= -github.com/charmbracelet/bubbletea v0.19.3/go.mod h1:VuXF2pToRxDUHcBUcPmCRUHRvFATM4Ckb/ql1rBl3KA= +github.com/charmbracelet/bubbles v0.14.0 h1:DJfCwnARfWjZLvMglhSQzo76UZ2gucuHPy9jLWX45Og= +github.com/charmbracelet/bubbles v0.14.0/go.mod h1:bbeTiXwPww4M031aGi8UK2HT9RDWoiNibae+1yCMtcc= +github.com/charmbracelet/bubbletea v0.21.0/go.mod h1:GgmJMec61d08zXsOhqRC/AiOx4K4pmz+VIcRIm1FKr4= github.com/charmbracelet/bubbletea v0.22.1 h1:z66q0LWdJNOWEH9zadiAIXp2GN1AWrwNXU8obVY9X24= github.com/charmbracelet/bubbletea v0.22.1/go.mod h1:8/7hVvbPN6ZZPkczLiB8YpLkLJ0n7DMho5Wvfd2X1C0= -github.com/charmbracelet/harmonica v0.1.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao= -github.com/charmbracelet/lipgloss v0.3.0/go.mod h1:VkhdBS2eNAmRkTwRKLJCFhCOVkjntMusBDxv7TXahuk= -github.com/charmbracelet/lipgloss v0.4.1-0.20220204041308-bf2912e703f6 h1:IO2ebJMUU2hixsAEBb80TyLTQQEqXIomwzd61rGzzAk= -github.com/charmbracelet/lipgloss v0.4.1-0.20220204041308-bf2912e703f6/go.mod h1:EZLha/HbzEt7cYqdFPovlqy5FZPj0xFhg5SaqxScmgs= +github.com/charmbracelet/harmonica v0.2.0/go.mod h1:KSri/1RMQOZLbw7AHqgcBycp8pgJnQMYYT8QZRqZ1Ao= +github.com/charmbracelet/lipgloss v0.5.0 h1:lulQHuVeodSgDez+3rGiuxlPVXSnhth442DATR2/8t8= +github.com/charmbracelet/lipgloss v0.5.0/go.mod h1:EZLha/HbzEt7cYqdFPovlqy5FZPj0xFhg5SaqxScmgs= github.com/cheggaaa/pb v1.0.29 h1:FckUN5ngEk2LpvuG0fw1GEFx6LtyY2pWI/Z2QgCnEYo= github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuPxX30= github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= @@ -84,7 +83,6 @@ github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XP github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= -github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= github.com/containerd/console v1.0.3 h1:lIr7SlA5PxZyMV30bDW0MGbiOPXwc63yRuCP0ARubLw= github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= @@ -351,8 +349,8 @@ github.com/minio/minio-go/v7 v7.0.23/go.mod h1:ei5JjmxwHaMrgsMrn4U/+Nmg+d8MKS1U2 github.com/minio/minio-go/v7 v7.0.40-0.20220928095841-8848d8affe8a h1:COFh7S3tOKmJNYtKKFAuHQFH7MAaXxg4aAluXC9KQgc= github.com/minio/minio-go/v7 v7.0.40-0.20220928095841-8848d8affe8a/go.mod h1:nCrRzjoSUQh8hgKKtu3Y708OLvRLtuASMg2/nvmbarw= github.com/minio/pkg v1.1.20/go.mod h1:Xo7LQshlxGa9shKwJ7NzQbgW4s8T/Wc1cOStR/eUiMY= -github.com/minio/pkg v1.4.5 h1:XE3o8XWc+oQSs9LXLtImfRrAfxRfI3dq9tJ0PerhOk8= -github.com/minio/pkg v1.4.5/go.mod h1:mxCLAG+fOGIQr6odQ5Ukqc6qv9Zj6v1d6TD3NP82B7Y= +github.com/minio/pkg v1.5.3 h1:yV1MpyacuHLs+TjQwYkzWYIKp3xIGf0SkHRs+zUE+VA= +github.com/minio/pkg v1.5.3/go.mod h1:koF2J2Ep/zpd//k+3UYdh6ySZKjqzy9C6RCZRX7uRY8= github.com/minio/selfupdate v0.4.0 h1:A7t07pN4Ch1tBTIRStW0KhUVyykz+2muCqFsITQeEW8= github.com/minio/selfupdate v0.4.0/go.mod h1:mcDkzMgq8PRcpCRJo/NlPY7U45O5dfYl2Y0Rg7IustY= github.com/minio/sha256-simd v0.1.1/go.mod h1:B5e1o+1/KgNmWrSQK08Y6Z1Vb5pwIktudl0J58iy0KM= @@ -378,13 +376,12 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b h1:1XF24mVaiu7u+CFywTdcDo2ie1pzzhwjt6RHqzpMU34= github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b/go.mod h1:fQuZ0gauxyBcmsdE3ZT4NasjaRdxmbCS0jRHsrWu3Ho= +github.com/muesli/cancelreader v0.2.0/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= github.com/muesli/cancelreader v0.2.2 h1:3I4Kt4BQjOR54NavqnDogx/MIoWBFa0StPA8ELUXHmA= github.com/muesli/cancelreader v0.2.2/go.mod h1:3XuTXfFS2VjM+HTLZY9Ak0l6eUKfijIfMUZ4EgX0QYo= github.com/muesli/reflow v0.2.1-0.20210115123740-9e1d0d53df68/go.mod h1:Xk+z4oIWdQqJzsxyjgl3P22oYZnHdZ8FFTHAQQt5BMQ= github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s= github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8= -github.com/muesli/termenv v0.8.1/go.mod h1:kzt/D/4a88RoheZmwfqorY3A+tnsSMA9HJC/fQSFKo0= -github.com/muesli/termenv v0.9.0/go.mod h1:R/LzAKf+suGs4IsO95y7+7DpFHO0KABgnZqtlyx2mBw= github.com/muesli/termenv v0.11.1-0.20220204035834-5ac8409525e0/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs= github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739 h1:QANkGiGr39l1EESqrE0gZw0/AJNYzIvoGLhIoVYtluI= github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs= @@ -736,6 +733,7 @@ golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220204135822-1c1b9b1eba6a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/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-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -746,7 +744,6 @@ golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXR golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210422114643-f5beecf764ed/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 h1:JGgROgKl9N8DuW20oFS5gxc+lE67/N3FcwmBPMe7ArY= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=