diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cd870e..94009d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ This project uses [Semantic Versioning 2.0.0](http://semver.org/), the format is ### Added - List commands now show a `Showing X of Y` pagination hint and expose `--all`/`--page`/`--per-page` consistently, making it obvious when results span multiple pages and how to retrieve the rest. (dnsimple/cli#51) +- Trustee service support: pass `--trustee` to `registrar register` and `registrar transfer` to enable the trustee service on domains that require a local presence, and the trustee state now surfaces in `domains get`, `registrar prices`, `registrar check`, and `tlds` output. (dnsimple/cli#37) + +### Changed + +- Upgraded the DNSimple Go client (`dnsimple-go`) from v8 to v9. (dnsimple/cli#37) ## 0.8.0 - 2026-05-14 diff --git a/go.mod b/go.mod index b6c2edd..8e5d7a2 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/dnsimple/cli go 1.25.4 require ( - github.com/dnsimple/dnsimple-go/v8 v8.3.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 diff --git a/go.sum b/go.sum index e096f20..421b00c 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.3.0 h1:/vKSG7HWC3lAbpC38KC7JVp4M4CMyHQwKaVLcekAAGQ= -github.com/dnsimple/dnsimple-go/v8 v8.3.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= diff --git a/internal/cli/accounts.go b/internal/cli/accounts.go index e9d0c89..e99b988 100644 --- a/internal/cli/accounts.go +++ b/internal/cli/accounts.go @@ -5,7 +5,7 @@ import ( "strconv" "github.com/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 ed6c4fb..60b4d6f 100644 --- a/internal/cli/analytics.go +++ b/internal/cli/analytics.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/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 0790e99..b38aee2 100644 --- a/internal/cli/analytics_test.go +++ b/internal/cli/analytics_test.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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 b28eb0e..bceff19 100644 --- a/internal/cli/auth.go +++ b/internal/cli/auth.go @@ -12,7 +12,7 @@ import ( "github.com/dnsimple/cli/internal/client" "github.com/dnsimple/cli/internal/cmdutil" "github.com/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 58d9d61..9c898d3 100644 --- a/internal/cli/auth_test.go +++ b/internal/cli/auth_test.go @@ -11,7 +11,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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 aaf3fe5..e16e91d 100644 --- a/internal/cli/billing.go +++ b/internal/cli/billing.go @@ -4,7 +4,7 @@ import ( "context" "github.com/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 e243151..1d2d0fd 100644 --- a/internal/cli/certificates.go +++ b/internal/cli/certificates.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/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 63b6ee6..c5288b2 100644 --- a/internal/cli/confirm_test.go +++ b/internal/cli/confirm_test.go @@ -9,7 +9,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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 6f2faac..459ab89 100644 --- a/internal/cli/contacts.go +++ b/internal/cli/contacts.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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.go b/internal/cli/domains.go index c6aa0a9..c0caf61 100644 --- a/internal/cli/domains.go +++ b/internal/cli/domains.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/dnsimple/cli/internal/cmdutil" - "github.com/dnsimple/dnsimple-go/v8/dnsimple" + "github.com/dnsimple/dnsimple-go/v9/dnsimple" "github.com/spf13/cobra" ) @@ -63,6 +63,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 ca5f594..58d14ce 100644 --- a/internal/cli/domains_delete_test.go +++ b/internal/cli/domains_delete_test.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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 d72d2d5..eaf66ee 100644 --- a/internal/cli/domains_dnssec.go +++ b/internal/cli/domains_dnssec.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 157c37f..667a840 100644 --- a/internal/cli/domains_ds_records.go +++ b/internal/cli/domains_ds_records.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 648d39a..729ffe3 100644 --- a/internal/cli/domains_email_forwards.go +++ b/internal/cli/domains_email_forwards.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 df48338..ef8458f 100644 --- a/internal/cli/domains_pushes.go +++ b/internal/cli/domains_pushes.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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/list_output.go b/internal/cli/list_output.go index 9bf3a45..1c1506e 100644 --- a/internal/cli/list_output.go +++ b/internal/cli/list_output.go @@ -4,7 +4,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/dnsimple/cli/internal/output" "github.com/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/output_test.go b/internal/cli/output_test.go index 6243b39..669ec06 100644 --- a/internal/cli/output_test.go +++ b/internal/cli/output_test.go @@ -10,7 +10,7 @@ import ( internalclient "github.com/dnsimple/cli/internal/client" "github.com/dnsimple/cli/internal/cmdutil" "github.com/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/registrar.go b/internal/cli/registrar.go index 769573f..c59dfbf 100644 --- a/internal/cli/registrar.go +++ b/internal/cli/registrar.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/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 af22408..ecae138 100644 --- a/internal/cli/registrar_delegation.go +++ b/internal/cli/registrar_delegation.go @@ -6,7 +6,7 @@ import ( "strings" "github.com/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 1bf400e..9137534 100644 --- a/internal/cli/registrar_registrant.go +++ b/internal/cli/registrar_registrant.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 f601003..248c8b8 100644 --- a/internal/cli/registrar_test.go +++ b/internal/cli/registrar_test.go @@ -10,7 +10,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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 5a514c4..ac5fa4b 100644 --- a/internal/cli/registrar_transfer_lock.go +++ b/internal/cli/registrar_transfer_lock.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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/research.go b/internal/cli/research.go index 2ed7dd0..69a7145 100644 --- a/internal/cli/research.go +++ b/internal/cli/research.go @@ -5,7 +5,7 @@ import ( "strings" "github.com/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/research_test.go b/internal/cli/research_test.go index bed3c22..e98ee25 100644 --- a/internal/cli/research_test.go +++ b/internal/cli/research_test.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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/services.go b/internal/cli/services.go index 287583a..e37caaa 100644 --- a/internal/cli/services.go +++ b/internal/cli/services.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/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_test.go b/internal/cli/services_test.go index 155e9c1..ec2e28c 100644 --- a/internal/cli/services_test.go +++ b/internal/cli/services_test.go @@ -8,7 +8,7 @@ import ( "github.com/dnsimple/cli/internal/cmdutil" "github.com/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/templates.go b/internal/cli/templates.go index ee594b1..dae644c 100644 --- a/internal/cli/templates.go +++ b/internal/cli/templates.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 8ed3244..8ab68a2 100644 --- a/internal/cli/templates_records.go +++ b/internal/cli/templates_records.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 510dddb..261f64b 100644 --- a/internal/cli/tlds.go +++ b/internal/cli/tlds.go @@ -5,7 +5,7 @@ import ( "strconv" "github.com/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 4f4f632..0f45cdc 100644 --- a/internal/cli/webhooks.go +++ b/internal/cli/webhooks.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 eb205c4..880efea 100644 --- a/internal/cli/zones.go +++ b/internal/cli/zones.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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_distribution.go b/internal/cli/zones_distribution.go index 2852e04..cc36ab0 100644 --- a/internal/cli/zones_distribution.go +++ b/internal/cli/zones_distribution.go @@ -6,7 +6,7 @@ import ( "strconv" "github.com/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 18826f0..3fe5ea8 100644 --- a/internal/cli/zones_records.go +++ b/internal/cli/zones_records.go @@ -7,7 +7,7 @@ import ( "strings" "github.com/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/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 7507a4d..7de222a 100644 --- a/internal/cmdutil/factory.go +++ b/internal/cmdutil/factory.go @@ -6,7 +6,7 @@ import ( "github.com/dnsimple/cli/internal/client" "github.com/dnsimple/cli/internal/config" "github.com/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" )