diff --git a/go.mod b/go.mod index b798f62..780ea2f 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,12 @@ module github.com/dnsimple/dnsimple-cli go 1.25.4 require ( - github.com/dnsimple/dnsimple-go/v8 v8.2.0 + github.com/dnsimple/dnsimple-go/v9 v9.1.0 github.com/spf13/cobra v1.10.2 github.com/spf13/pflag v1.0.10 github.com/spf13/viper v1.21.0 github.com/stretchr/testify v1.11.1 + golang.org/x/term v0.41.0 gopkg.in/yaml.v3 v3.0.1 ) @@ -28,6 +29,5 @@ require ( go.yaml.in/yaml/v3 v3.0.4 // indirect golang.org/x/oauth2 v0.34.0 // indirect golang.org/x/sys v0.42.0 // indirect - golang.org/x/term v0.41.0 // indirect golang.org/x/text v0.28.0 // indirect ) diff --git a/go.sum b/go.sum index eac2259..94c4236 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dnsimple/dnsimple-go/v8 v8.2.0 h1:nNgtqKrt1K1BIWIpKTCL2qCiQcfYUxzsyRGIKLYEYH0= -github.com/dnsimple/dnsimple-go/v8 v8.2.0/go.mod h1:61MdYHRL+p2TBBUVEkxo1n4iRF6s3R9fZcvQvyt5du8= +github.com/dnsimple/dnsimple-go/v9 v9.1.0 h1:y9ZacZk+fv3cUWDPVh8mdgvwin9DwQl8aQFBHWytC9E= +github.com/dnsimple/dnsimple-go/v9 v9.1.0/go.mod h1:OcXRl+Ozh0ukD9Et8/IbfZv1ny4CpiUrHYk//yXR2q0= github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.9.0 h1:2Ml+OJNzbYCTzsxtv8vKSFD9PbJjmhYF14k/jKC7S9k= @@ -51,8 +51,6 @@ go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc= go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg= golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw= golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/term v0.41.0 h1:QCgPso/Q3RTJx2Th4bDLqML4W6iJiaXFq2/ftQF13YU= diff --git a/internal/cli/accounts.go b/internal/cli/accounts.go index de90d59..cea0e91 100644 --- a/internal/cli/accounts.go +++ b/internal/cli/accounts.go @@ -5,7 +5,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/analytics.go b/internal/cli/analytics.go index cd4e732..096e353 100644 --- a/internal/cli/analytics.go +++ b/internal/cli/analytics.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/analytics_test.go b/internal/cli/analytics_test.go index 23bfcf6..2206e2b 100644 --- a/internal/cli/analytics_test.go +++ b/internal/cli/analytics_test.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/stretchr/testify/assert" ) diff --git a/internal/cli/auth.go b/internal/cli/auth.go index 7d12776..68a301c 100644 --- a/internal/cli/auth.go +++ b/internal/cli/auth.go @@ -12,7 +12,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/client" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" "golang.org/x/term" ) diff --git a/internal/cli/auth_test.go b/internal/cli/auth_test.go index 1918131..d75ed49 100644 --- a/internal/cli/auth_test.go +++ b/internal/cli/auth_test.go @@ -11,7 +11,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" "github.com/stretchr/testify/assert" ) diff --git a/internal/cli/billing.go b/internal/cli/billing.go index 75a386c..004851d 100644 --- a/internal/cli/billing.go +++ b/internal/cli/billing.go @@ -4,7 +4,7 @@ import ( "context" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/certificates.go b/internal/cli/certificates.go index e869dbc..05ebca2 100644 --- a/internal/cli/certificates.go +++ b/internal/cli/certificates.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/confirm_test.go b/internal/cli/confirm_test.go index cd798e4..ea8f8ad 100644 --- a/internal/cli/confirm_test.go +++ b/internal/cli/confirm_test.go @@ -9,7 +9,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" "github.com/stretchr/testify/assert" ) diff --git a/internal/cli/contacts.go b/internal/cli/contacts.go index 77bba3e..27bdb94 100644 --- a/internal/cli/contacts.go +++ b/internal/cli/contacts.go @@ -7,7 +7,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/pagination" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/domains.go b/internal/cli/domains.go index d90d713..ba98599 100644 --- a/internal/cli/domains.go +++ b/internal/cli/domains.go @@ -9,7 +9,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/pagination" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) @@ -64,6 +64,7 @@ func (d *domainItem) TableRows() [][]string { {"State", dom.State}, {"Auto Renew", strconv.FormatBool(dom.AutoRenew)}, {"Private WHOIS", strconv.FormatBool(dom.PrivateWhois)}, + {"Trustee", strconv.FormatBool(dom.Trustee)}, {"Expires At", dom.ExpiresAt}, {"Created At", dom.CreatedAt}, {"Updated At", dom.UpdatedAt}, diff --git a/internal/cli/domains_delete_test.go b/internal/cli/domains_delete_test.go index 4ec5382..f566dc0 100644 --- a/internal/cli/domains_delete_test.go +++ b/internal/cli/domains_delete_test.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/stretchr/testify/assert" ) diff --git a/internal/cli/domains_dnssec.go b/internal/cli/domains_dnssec.go index d446be3..e8f1106 100644 --- a/internal/cli/domains_dnssec.go +++ b/internal/cli/domains_dnssec.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/domains_ds_records.go b/internal/cli/domains_ds_records.go index 6fc297e..533502d 100644 --- a/internal/cli/domains_ds_records.go +++ b/internal/cli/domains_ds_records.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/domains_email_forwards.go b/internal/cli/domains_email_forwards.go index dc6cc6e..0b685c5 100644 --- a/internal/cli/domains_email_forwards.go +++ b/internal/cli/domains_email_forwards.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/domains_pushes.go b/internal/cli/domains_pushes.go index cfe9edf..38f34ed 100644 --- a/internal/cli/domains_pushes.go +++ b/internal/cli/domains_pushes.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/output_test.go b/internal/cli/output_test.go index 6279862..405fb02 100644 --- a/internal/cli/output_test.go +++ b/internal/cli/output_test.go @@ -10,7 +10,7 @@ import ( internalclient "github.com/dnsimple/dnsimple-cli/internal/client" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/stretchr/testify/assert" ) diff --git a/internal/cli/registrar.go b/internal/cli/registrar.go index 7b91c23..a711f52 100644 --- a/internal/cli/registrar.go +++ b/internal/cli/registrar.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) @@ -38,16 +38,21 @@ type domainPriceOutput struct { } func (d *domainPriceOutput) TableHeaders() []string { - return []string{"DOMAIN", "PREMIUM", "REGISTRATION", "RENEWAL", "TRANSFER"} + return []string{"DOMAIN", "PREMIUM", "REGISTRATION", "RENEWAL", "TRANSFER", "TRUSTEE"} } func (d *domainPriceOutput) TableRows() [][]string { + trustee := "-" + if d.Data.TrusteePrice != nil { + trustee = fmt.Sprintf("%.2f", *d.Data.TrusteePrice) + } return [][]string{{ d.Data.Domain, strconv.FormatBool(d.Data.Premium), fmt.Sprintf("%.2f", d.Data.RegistrationPrice), fmt.Sprintf("%.2f", d.Data.RenewalPrice), fmt.Sprintf("%.2f", d.Data.TransferPrice), + trustee, }} } @@ -73,6 +78,7 @@ func (d *domainRegistrationOutput) TableRows() [][]string { {"State", r.State}, {"Auto Renew", strconv.FormatBool(r.AutoRenew)}, {"WHOIS Privacy", strconv.FormatBool(r.WhoisPrivacy)}, + {"Trustee", strconv.FormatBool(r.Trustee)}, {"Period", strconv.Itoa(r.Period)}, } } @@ -122,6 +128,7 @@ func (d *domainTransferOutput) TableRows() [][]string { {"State", t.State}, {"Auto Renew", strconv.FormatBool(t.AutoRenew)}, {"WHOIS Privacy", strconv.FormatBool(t.WhoisPrivacy)}, + {"Trustee", strconv.FormatBool(t.Trustee)}, } } @@ -205,7 +212,7 @@ func newRegistrarPricesCmd(f *cmdutil.Factory) *cobra.Command { func newRegistrarRegisterCmd(f *cmdutil.Factory) *cobra.Command { var registrantID int - var autoRenew, whoisPrivacy bool + var autoRenew, whoisPrivacy, trusteeService bool var premiumPrice string var extendedAttributes []string @@ -228,6 +235,7 @@ func newRegistrarRegisterCmd(f *cmdutil.Factory) *cobra.Command { RegistrantID: registrantID, EnableAutoRenewal: autoRenew, EnableWhoisPrivacy: whoisPrivacy, + Trustee: &trusteeService, PremiumPrice: premiumPrice, ExtendedAttributes: parseExtendedAttributes(extendedAttributes), } @@ -244,6 +252,7 @@ func newRegistrarRegisterCmd(f *cmdutil.Factory) *cobra.Command { cmd.Flags().IntVar(®istrantID, "registrant-id", 0, "Contact ID to use as registrant") cmd.Flags().BoolVar(&autoRenew, "auto-renew", true, "Enable auto-renewal") cmd.Flags().BoolVar(&whoisPrivacy, "whois-privacy", false, "Enable WHOIS privacy") + cmd.Flags().BoolVar(&trusteeService, "trustee", false, "Enable trustee service (extra cost may apply)") cmd.Flags().StringVar(&premiumPrice, "premium-price", "", "Confirm premium price") cmd.Flags().StringArrayVar(&extendedAttributes, "extended-attribute", nil, "Extended attributes (key=value)") _ = cmd.MarkFlagRequired("registrant-id") @@ -254,7 +263,7 @@ func newRegistrarRegisterCmd(f *cmdutil.Factory) *cobra.Command { func newRegistrarTransferCmd(f *cmdutil.Factory) *cobra.Command { var registrantID int var authCode string - var autoRenew, whoisPrivacy bool + var autoRenew, whoisPrivacy, trusteeService bool var premiumPrice string var extendedAttributes []string @@ -278,6 +287,7 @@ func newRegistrarTransferCmd(f *cmdutil.Factory) *cobra.Command { AuthCode: authCode, EnableAutoRenewal: autoRenew, EnableWhoisPrivacy: whoisPrivacy, + Trustee: &trusteeService, PremiumPrice: premiumPrice, ExtendedAttributes: parseExtendedAttributes(extendedAttributes), } @@ -295,6 +305,7 @@ func newRegistrarTransferCmd(f *cmdutil.Factory) *cobra.Command { cmd.Flags().StringVar(&authCode, "auth-code", "", "Authorization code from current registrar") cmd.Flags().BoolVar(&autoRenew, "auto-renew", true, "Enable auto-renewal") cmd.Flags().BoolVar(&whoisPrivacy, "whois-privacy", false, "Enable WHOIS privacy") + cmd.Flags().BoolVar(&trusteeService, "trustee", false, "Enable trustee service (extra cost may apply)") cmd.Flags().StringVar(&premiumPrice, "premium-price", "", "Confirm premium price") cmd.Flags().StringArrayVar(&extendedAttributes, "extended-attribute", nil, "Extended attributes (key=value)") _ = cmd.MarkFlagRequired("registrant-id") diff --git a/internal/cli/registrar_delegation.go b/internal/cli/registrar_delegation.go index 171f302..15ee2a0 100644 --- a/internal/cli/registrar_delegation.go +++ b/internal/cli/registrar_delegation.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/registrar_registrant.go b/internal/cli/registrar_registrant.go index e629558..a56c633 100644 --- a/internal/cli/registrar_registrant.go +++ b/internal/cli/registrar_registrant.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/registrar_test.go b/internal/cli/registrar_test.go index 796eb4b..b43481b 100644 --- a/internal/cli/registrar_test.go +++ b/internal/cli/registrar_test.go @@ -10,7 +10,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/config" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/stretchr/testify/assert" ) diff --git a/internal/cli/registrar_transfer_lock.go b/internal/cli/registrar_transfer_lock.go index 7c85792..6df7802 100644 --- a/internal/cli/registrar_transfer_lock.go +++ b/internal/cli/registrar_transfer_lock.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/services.go b/internal/cli/services.go index aa4a3c0..84e76a5 100644 --- a/internal/cli/services.go +++ b/internal/cli/services.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/templates.go b/internal/cli/templates.go index 0b6fb95..3718fe9 100644 --- a/internal/cli/templates.go +++ b/internal/cli/templates.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/templates_records.go b/internal/cli/templates_records.go index 51417c2..b3b1d66 100644 --- a/internal/cli/templates_records.go +++ b/internal/cli/templates_records.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/tlds.go b/internal/cli/tlds.go index 46aac9d..755a53d 100644 --- a/internal/cli/tlds.go +++ b/internal/cli/tlds.go @@ -5,7 +5,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) @@ -15,7 +15,7 @@ type tldList struct { } func (t *tldList) TableHeaders() []string { - return []string{"TLD", "TYPE", "REGISTRATION", "RENEWAL", "TRANSFER", "WHOIS PRIVACY"} + return []string{"TLD", "TYPE", "REGISTRATION", "RENEWAL", "TRANSFER", "WHOIS PRIVACY", "TRUSTEE"} } func (t *tldList) TableRows() [][]string { @@ -28,11 +28,23 @@ func (t *tldList) TableRows() [][]string { strconv.FormatBool(tld.RenewalEnabled), strconv.FormatBool(tld.TransferEnabled), strconv.FormatBool(tld.WhoisPrivacy), + tldTrusteeState(tld), } } return rows } +func tldTrusteeState(tld dnsimple.Tld) string { + switch { + case tld.TrusteeServiceRequired: + return "required" + case tld.TrusteeServiceEnabled: + return "optional" + default: + return "-" + } +} + func (t *tldList) JSONData() any { return t } func (t *tldList) TemplateData() any { return t.Data } @@ -57,6 +69,8 @@ func (t *tldItemOutput) TableRows() [][]string { {"Auto Renew Only", strconv.FormatBool(tld.AutoRenewOnly)}, {"Min Registration", strconv.Itoa(tld.MinimumRegistration)}, {"DNSSEC Interface", tld.DnssecInterfaceType}, + {"Trustee Supported", strconv.FormatBool(tld.TrusteeServiceEnabled)}, + {"Trustee Required", strconv.FormatBool(tld.TrusteeServiceRequired)}, } } diff --git a/internal/cli/webhooks.go b/internal/cli/webhooks.go index 0ae3c20..6d77a13 100644 --- a/internal/cli/webhooks.go +++ b/internal/cli/webhooks.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/zones.go b/internal/cli/zones.go index f025836..ddd64d5 100644 --- a/internal/cli/zones.go +++ b/internal/cli/zones.go @@ -7,7 +7,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/pagination" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/zones_distribution.go b/internal/cli/zones_distribution.go index bccdec2..749d12b 100644 --- a/internal/cli/zones_distribution.go +++ b/internal/cli/zones_distribution.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/dnsimple/dnsimple-cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/cli/zones_records.go b/internal/cli/zones_records.go index 91a1dcd..79caa7f 100644 --- a/internal/cli/zones_records.go +++ b/internal/cli/zones_records.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/cmdutil" "github.com/dnsimple/dnsimple-cli/internal/pagination" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/client/client.go b/internal/client/client.go index 5590f98..dfc46f9 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" ) // Options configures a DNSimple API client. diff --git a/internal/cmdutil/errors.go b/internal/cmdutil/errors.go index dd7f662..fd52ad1 100644 --- a/internal/cmdutil/errors.go +++ b/internal/cmdutil/errors.go @@ -6,7 +6,7 @@ import ( "io" "strings" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" ) const ( diff --git a/internal/cmdutil/errors_test.go b/internal/cmdutil/errors_test.go index ab63f12..6010e28 100644 --- a/internal/cmdutil/errors_test.go +++ b/internal/cmdutil/errors_test.go @@ -6,7 +6,7 @@ import ( "net/http" "testing" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/stretchr/testify/assert" ) diff --git a/internal/cmdutil/factory.go b/internal/cmdutil/factory.go index 0b3932a..1c3f7f2 100644 --- a/internal/cmdutil/factory.go +++ b/internal/cmdutil/factory.go @@ -6,7 +6,7 @@ import ( "github.com/dnsimple/dnsimple-cli/internal/client" "github.com/dnsimple/dnsimple-cli/internal/config" "github.com/dnsimple/dnsimple-cli/internal/output" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) diff --git a/internal/pagination/pagination.go b/internal/pagination/pagination.go index 111e2ea..c66f3c0 100644 --- a/internal/pagination/pagination.go +++ b/internal/pagination/pagination.go @@ -1,7 +1,7 @@ package pagination import ( - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" ) // FetchPage is a function that fetches a single page of results. diff --git a/internal/pagination/pagination_test.go b/internal/pagination/pagination_test.go index 9116f6b..ba920cf 100644 --- a/internal/pagination/pagination_test.go +++ b/internal/pagination/pagination_test.go @@ -4,7 +4,7 @@ import ( "errors" "testing" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/stretchr/testify/assert" )