Skip to content

Commit cdc1a32

Browse files
authored
Merge branch 'master' into v1.7335.0
2 parents 9e6c0a9 + be6fef1 commit cdc1a32

File tree

7 files changed

+89
-47
lines changed

7 files changed

+89
-47
lines changed

go.mod

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ module github.com/scaleway/scaleway-cli/v2
33
go 1.25.0
44

55
require (
6-
github.com/aws/aws-sdk-go-v2 v1.39.6
7-
github.com/aws/aws-sdk-go-v2/service/s3 v1.90.2
6+
github.com/aws/aws-sdk-go-v2 v1.40.0
7+
github.com/aws/aws-sdk-go-v2/service/s3 v1.91.1
88
github.com/buildpacks/pack v0.38.2
99
github.com/c-bata/go-prompt v0.2.6
1010
github.com/charmbracelet/bubbletea v1.3.10
@@ -28,7 +28,7 @@ require (
2828
github.com/spf13/cobra v1.10.1
2929
github.com/spf13/pflag v1.0.10
3030
github.com/stretchr/testify v1.11.1
31-
golang.org/x/crypto v0.44.0
31+
golang.org/x/crypto v0.45.0
3232
golang.org/x/sync v0.18.0
3333
golang.org/x/term v0.37.0
3434
golang.org/x/text v0.31.0
@@ -59,16 +59,16 @@ require (
5959
github.com/aws/aws-sdk-go-v2/config v1.31.6 // indirect
6060
github.com/aws/aws-sdk-go-v2/credentials v1.18.10 // indirect
6161
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.6 // indirect
62-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13 // indirect
63-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13 // indirect
62+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14 // indirect
63+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14 // indirect
6464
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 // indirect
65-
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.13 // indirect
65+
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.14 // indirect
6666
github.com/aws/aws-sdk-go-v2/service/ecr v1.50.1 // indirect
6767
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.37.2 // indirect
6868
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 // indirect
69-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.4 // indirect
70-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13 // indirect
71-
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.13 // indirect
69+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.5 // indirect
70+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14 // indirect
71+
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.14 // indirect
7272
github.com/aws/aws-sdk-go-v2/service/sso v1.29.1 // indirect
7373
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.34.2 // indirect
7474
github.com/aws/aws-sdk-go-v2/service/sts v1.38.2 // indirect
@@ -201,7 +201,7 @@ require (
201201
go.opentelemetry.io/proto/otlp v1.7.1 // indirect
202202
go.yaml.in/yaml/v2 v2.4.2 // indirect
203203
golang.org/x/mod v0.29.0 // indirect
204-
golang.org/x/net v0.46.0 // indirect
204+
golang.org/x/net v0.47.0 // indirect
205205
golang.org/x/sys v0.38.0 // indirect
206206
golang.org/x/time v0.14.0 // indirect
207207
golang.org/x/tools v0.38.0 // indirect

go.sum

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ github.com/aphistic/sweet v0.2.0/go.mod h1:fWDlIh/isSE9n6EPsRmC0det+whmX6dJid3st
6363
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
6464
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
6565
github.com/aws/aws-sdk-go v1.20.6/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
66-
github.com/aws/aws-sdk-go-v2 v1.39.6 h1:2JrPCVgWJm7bm83BDwY5z8ietmeJUbh3O2ACnn+Xsqk=
67-
github.com/aws/aws-sdk-go-v2 v1.39.6/go.mod h1:c9pm7VwuW0UPxAEYGyTmyurVcNrbF6Rt/wixFqDhcjE=
66+
github.com/aws/aws-sdk-go-v2 v1.40.0 h1:/WMUA0kjhZExjOQN2z3oLALDREea1A7TobfuiBrKlwc=
67+
github.com/aws/aws-sdk-go-v2 v1.40.0/go.mod h1:c9pm7VwuW0UPxAEYGyTmyurVcNrbF6Rt/wixFqDhcjE=
6868
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.3 h1:DHctwEM8P8iTXFxC/QK0MRjwEpWQeM9yzidCRjldUz0=
6969
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.3/go.mod h1:xdCzcZEtnSTKVDOmUZs4l/j3pSV6rpo1WXl5ugNsL8Y=
7070
github.com/aws/aws-sdk-go-v2/config v1.31.6 h1:a1t8fXY4GT4xjyJExz4knbuoxSCacB5hT/WgtfPyLjo=
@@ -73,28 +73,28 @@ github.com/aws/aws-sdk-go-v2/credentials v1.18.10 h1:xdJnXCouCx8Y0NncgoptztUocIY
7373
github.com/aws/aws-sdk-go-v2/credentials v1.18.10/go.mod h1:7tQk08ntj914F/5i9jC4+2HQTAuJirq7m1vZVIhEkWs=
7474
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.6 h1:wbjnrrMnKew78/juW7I2BtKQwa1qlf6EjQgS69uYY14=
7575
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.18.6/go.mod h1:AtiqqNrDioJXuUgz3+3T0mBWN7Hro2n9wll2zRUc0ww=
76-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13 h1:a+8/MLcWlIxo1lF9xaGt3J/u3yOZx+CdSveSNwjhD40=
77-
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.13/go.mod h1:oGnKwIYZ4XttyU2JWxFrwvhF6YKiK/9/wmE3v3Iu9K8=
78-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13 h1:HBSI2kDkMdWz4ZM7FjwE7e/pWDEZ+nR95x8Ztet1ooY=
79-
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.13/go.mod h1:YE94ZoDArI7awZqJzBAZ3PDD2zSfuP7w6P2knOzIn8M=
76+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14 h1:PZHqQACxYb8mYgms4RZbhZG0a7dPW06xOjmaH0EJC/I=
77+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.4.14/go.mod h1:VymhrMJUWs69D8u0/lZ7jSB6WgaG/NqHi3gX0aYf6U0=
78+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14 h1:bOS19y6zlJwagBfHxs0ESzr1XCOU2KXJCWcq3E2vfjY=
79+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.7.14/go.mod h1:1ipeGBMAxZ0xcTm6y6paC2C/J6f6OO7LBODV9afuAyM=
8080
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3 h1:bIqFDwgGXXN1Kpp99pDOdKMTTb5d2KyU5X/BZxjOkRo=
8181
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.3/go.mod h1:H5O/EsxDWyU+LP/V8i5sm8cxoZgc2fdNR9bxlOFrQTo=
82-
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.13 h1:eg/WYAa12vqTphzIdWMzqYRVKKnCboVPRlvaybNCqPA=
83-
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.13/go.mod h1:/FDdxWhz1486obGrKKC1HONd7krpk38LBt+dutLcN9k=
82+
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.14 h1:ITi7qiDSv/mSGDSWNpZ4k4Ve0DQR6Ug2SJQ8zEHoDXg=
83+
github.com/aws/aws-sdk-go-v2/internal/v4a v1.4.14/go.mod h1:k1xtME53H1b6YpZt74YmwlONMWf4ecM+lut1WQLAF/U=
8484
github.com/aws/aws-sdk-go-v2/service/ecr v1.50.1 h1:lcwFjRx3C/hBxJzoWkD6DIG2jeB+mzLmFVBFVOadxxE=
8585
github.com/aws/aws-sdk-go-v2/service/ecr v1.50.1/go.mod h1:qt9OL5kXqWoSub4QAkOF74mS3M2zOTNxMODqgwEUjt8=
8686
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.37.2 h1:EfatDVSMFxaS5TiR0C0zssQU1Nm+rGx3VbUGIH1y274=
8787
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.37.2/go.mod h1:oRy1IEgzXtOkEk4B/J7HZbXUC258drDLtkmc++lN7IA=
8888
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3 h1:x2Ibm/Af8Fi+BH+Hsn9TXGdT+hKbDd5XOTZxTMxDk7o=
8989
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.3/go.mod h1:IW1jwyrQgMdhisceG8fQLmQIydcT/jWY21rFhzgaKwo=
90-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.4 h1:NvMjwvv8hpGUILarKw7Z4Q0w1H9anXKsesMxtw++MA4=
91-
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.4/go.mod h1:455WPHSwaGj2waRSpQp7TsnpOnBfw8iDfPfbwl7KPJE=
92-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13 h1:kDqdFvMY4AtKoACfzIGD8A0+hbT41KTKF//gq7jITfM=
93-
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.13/go.mod h1:lmKuogqSU3HzQCwZ9ZtcqOc5XGMqtDK7OIc2+DxiUEg=
94-
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.13 h1:zhBJXdhWIFZ1acfDYIhu4+LCzdUS2Vbcum7D01dXlHQ=
95-
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.13/go.mod h1:JaaOeCE368qn2Hzi3sEzY6FgAZVCIYcC2nwbro2QCh8=
96-
github.com/aws/aws-sdk-go-v2/service/s3 v1.90.2 h1:DhdbtDl4FdNlj31+xiRXANxEE+eC7n8JQz+/ilwQ8Uc=
97-
github.com/aws/aws-sdk-go-v2/service/s3 v1.90.2/go.mod h1:+wArOOrcHUevqdto9k1tKOF5++YTe9JEcPSc9Tx2ZSw=
90+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.5 h1:Hjkh7kE6D81PgrHlE/m9gx+4TyyeLHuY8xJs7yXN5C4=
91+
github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.5/go.mod h1:nPRXgyCfAurhyaTMoBMwRBYBhaHI4lNPAnJmjM0Tslc=
92+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14 h1:FIouAnCE46kyYqyhs0XEBDFFSREtdnr8HQuLPQPLCrY=
93+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.13.14/go.mod h1:UTwDc5COa5+guonQU8qBikJo1ZJ4ln2r1MkF7Dqag1E=
94+
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.14 h1:FzQE21lNtUor0Fb7QNgnEyiRCBlolLTX/Z1j65S7teM=
95+
github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.14/go.mod h1:s1ydyWG9pm3ZwmmYN21HKyG9WzAZhYVW85wMHs5FV6w=
96+
github.com/aws/aws-sdk-go-v2/service/s3 v1.91.1 h1:f3CVT98cvySOZslMZHusyQHTMY8Xt+F1i0YaR6oEJ4s=
97+
github.com/aws/aws-sdk-go-v2/service/s3 v1.91.1/go.mod h1:wYNqY3L02Z3IgRYxOBPH9I1zD9Cjh9hI5QOy/eOjQvw=
9898
github.com/aws/aws-sdk-go-v2/service/sso v1.29.1 h1:8OLZnVJPvjnrxEwHFg9hVUof/P4sibH+Ea4KKuqAGSg=
9999
github.com/aws/aws-sdk-go-v2/service/sso v1.29.1/go.mod h1:27M3BpVi0C02UiQh1w9nsBEit6pLhlaH3NHna6WUbDE=
100100
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.34.2 h1:gKWSTnqudpo8dAxqBqZnDoDWCiEh/40FziUjr/mo6uA=
@@ -577,8 +577,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
577577
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
578578
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
579579
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
580-
golang.org/x/crypto v0.44.0 h1:A97SsFvM3AIwEEmTBiaxPPTYpDC47w720rdiiUvgoAU=
581-
golang.org/x/crypto v0.44.0/go.mod h1:013i+Nw79BMiQiMsOPcVCB5ZIJbYkerPrGnOa00tvmc=
580+
golang.org/x/crypto v0.45.0 h1:jMBrvKuj23MTlT0bQEOBcAE0mjg8mK9RXFhRH6nyF3Q=
581+
golang.org/x/crypto v0.45.0/go.mod h1:XTGrrkGJve7CYK7J8PEww4aY7gM3qMCElcJQ8n8JdX4=
582582
golang.org/x/exp v0.0.0-20250911091902-df9299821621 h1:2id6c1/gto0kaHYyrixvknJ8tUK/Qs5IsmBtrc+FtgU=
583583
golang.org/x/exp v0.0.0-20250911091902-df9299821621/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk=
584584
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
@@ -599,8 +599,8 @@ golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qx
599599
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
600600
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
601601
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
602-
golang.org/x/net v0.46.0 h1:giFlY12I07fugqwPuWJi68oOnpfqFnJIJzaIIm2JVV4=
603-
golang.org/x/net v0.46.0/go.mod h1:Q9BGdFy1y4nkUwiLvT5qtyhAnEHgnQ/zd8PfU6nc210=
602+
golang.org/x/net v0.47.0 h1:Mx+4dIFzqraBXUugkia1OOvlD6LemFo1ALMHjrXDOhY=
603+
golang.org/x/net v0.47.0/go.mod h1:/jNxtkgq5yWUGYkaZGqo27cfGZ1c5Nen03aYrrKpVRU=
604604
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
605605
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
606606
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=

internal/namespaces/applesilicon/v1alpha1/applesilicon_cli.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,12 @@ func appleSiliconServerCreate() *core.Command {
232232
"gitlab",
233233
},
234234
},
235+
{
236+
Name: "applied-runner-configurations.runner-configuration-ids.{index}",
237+
Required: false,
238+
Deprecated: false,
239+
Positional: false,
240+
},
235241
core.ZoneArgSpec(scw.ZoneFrPar3),
236242
},
237243
Run: func(ctx context.Context, args any) (i any, e error) {
@@ -470,6 +476,12 @@ func appleSiliconServerUpdate() *core.Command {
470476
Deprecated: false,
471477
Positional: false,
472478
},
479+
{
480+
Name: "applied-runner-configurations.runner-configuration-ids.{index}",
481+
Required: false,
482+
Deprecated: false,
483+
Positional: false,
484+
},
473485
core.ZoneArgSpec(scw.ZoneFrPar3),
474486
},
475487
Run: func(ctx context.Context, args any) (i any, e error) {

internal/namespaces/cockpit/v1/cockpit_cli.go

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -225,13 +225,14 @@ func cockpitGrafanaSyncDataSources() *core.Command {
225225

226226
func cockpitGrafanaUserCreate() *core.Command {
227227
return &core.Command{
228-
Short: `Create a Grafana user`,
229-
Long: `Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
228+
Short: `(Deprecated) EOL 2026-01-20`,
229+
Long: `Create a Grafana user
230+
Create a Grafana user to connect to your Cockpit's Grafana. Upon creation, your user password displays only once, so make sure that you save it.
230231
Each Grafana user is associated with a role: viewer or editor. A viewer can only view dashboards, whereas an editor can create and edit dashboards. Note that the ` + "`" + `admin` + "`" + ` username is not available for creation.`,
231232
Namespace: "cockpit",
232233
Resource: "grafana-user",
233234
Verb: "create",
234-
// Deprecated: false,
235+
// Deprecated: true,
235236
ArgsType: reflect.TypeOf(cockpit.GlobalAPICreateGrafanaUserRequest{}),
236237
ArgSpecs: core.ArgSpecs{
237238
core.ProjectIDArgSpec(),
@@ -268,12 +269,13 @@ Each Grafana user is associated with a role: viewer or editor. A viewer can only
268269

269270
func cockpitGrafanaUserList() *core.Command {
270271
return &core.Command{
271-
Short: `List Grafana users`,
272-
Long: `List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.`,
272+
Short: `(Deprecated) EOL 2026-01-20`,
273+
Long: `List Grafana users
274+
List all Grafana users created in your Cockpit's Grafana. By default, the Grafana users returned in the list are ordered in ascending order.`,
273275
Namespace: "cockpit",
274276
Resource: "grafana-user",
275277
Verb: "list",
276-
// Deprecated: false,
278+
// Deprecated: true,
277279
ArgsType: reflect.TypeOf(cockpit.GlobalAPIListGrafanaUsersRequest{}),
278280
ArgSpecs: core.ArgSpecs{
279281
{
@@ -307,12 +309,13 @@ func cockpitGrafanaUserList() *core.Command {
307309

308310
func cockpitGrafanaUserDelete() *core.Command {
309311
return &core.Command{
310-
Short: `Delete a Grafana user`,
311-
Long: `Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.`,
312+
Short: `(Deprecated) EOL 2026-01-20`,
313+
Long: `Delete a Grafana user
314+
Delete a Grafana user from your Cockpit's Grafana, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.`,
312315
Namespace: "cockpit",
313316
Resource: "grafana-user",
314317
Verb: "delete",
315-
// Deprecated: false,
318+
// Deprecated: true,
316319
ArgsType: reflect.TypeOf(cockpit.GlobalAPIDeleteGrafanaUserRequest{}),
317320
ArgSpecs: core.ArgSpecs{
318321
core.ProjectIDArgSpec(),
@@ -344,13 +347,14 @@ func cockpitGrafanaUserDelete() *core.Command {
344347

345348
func cockpitGrafanaUserResetPassword() *core.Command {
346349
return &core.Command{
347-
Short: `Reset a Grafana user password`,
348-
Long: `Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
350+
Short: `(Deprecated) EOL 2026-01-20`,
351+
Long: `Reset a Grafana user password
352+
Reset the password of a Grafana user, specified by the ID of the Project the Cockpit belongs to, and the ID of the Grafana user.
349353
A new password regenerates and only displays once. Make sure that you save it.`,
350354
Namespace: "cockpit",
351355
Resource: "grafana-user",
352356
Verb: "reset-password",
353-
// Deprecated: false,
357+
// Deprecated: true,
354358
ArgsType: reflect.TypeOf(cockpit.GlobalAPIResetGrafanaUserPasswordRequest{}),
355359
ArgSpecs: core.ArgSpecs{
356360
core.ProjectIDArgSpec(),
@@ -442,7 +446,7 @@ func cockpitPlanList() *core.Command {
442446
return &core.Command{
443447
Short: `List plan types`,
444448
Long: `Retrieve a list of available pricing plan types.
445-
Deprecated: retention is now managed at the data source level.`,
449+
Deprecated due to retention now being managed at the data source level.`,
446450
Namespace: "cockpit",
447451
Resource: "plan",
448452
Verb: "list",
@@ -480,7 +484,7 @@ func cockpitPlanSelect() *core.Command {
480484
return &core.Command{
481485
Short: `Apply a pricing plan`,
482486
Long: `Apply a pricing plan on a given Project. You must specify the ID of the pricing plan type. Note that you will be billed for the plan you apply.
483-
Deprecated: retention is now managed at the data source level.`,
487+
Deprecated due to retention now being managed at the data source level.`,
484488
Namespace: "cockpit",
485489
Resource: "plan",
486490
Verb: "select",
@@ -517,7 +521,7 @@ func cockpitPlanGet() *core.Command {
517521
return &core.Command{
518522
Short: `Get current plan`,
519523
Long: `Retrieve a pricing plan for the given Project, specified by the ID of the Project.
520-
Deprecated: retention is now managed at the data source level.`,
524+
Deprecated due to retention now being managed at the data source level.`,
521525
Namespace: "cockpit",
522526
Resource: "plan",
523527
Verb: "get",

internal/namespaces/mnq/v1beta1/mnq_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ func mnqSnsActivate() *core.Command {
501501
func mnqSnsGetInfo() *core.Command {
502502
return &core.Command{
503503
Short: `Get Topics and Events info`,
504-
Long: `Retrieve the Topics and Events information of the specified Project ID. Information include the activation status and the Topics and Events API endpoint URL.`,
504+
Long: `Retrieve the Topics and Events information of the specified Project ID. information include the activation status and the Topics and Events API endpoint URL.`,
505505
Namespace: "mnq",
506506
Resource: "sns",
507507
Verb: "get-info",
@@ -830,7 +830,7 @@ func mnqSqsActivate() *core.Command {
830830
func mnqSqsGetInfo() *core.Command {
831831
return &core.Command{
832832
Short: `Get Queues info`,
833-
Long: `Retrieve the Queues information of the specified Project ID. Information include the activation status and the Queues API endpoint URL.`,
833+
Long: `Retrieve the Queues information of the specified Project ID. information include the activation status and the Queues API endpoint URL.`,
834834
Namespace: "mnq",
835835
Resource: "sqs",
836836
Verb: "get-info",

internal/qa/qa.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func LintCommands(commands *core.Commands) []error {
2323
errors = append(errors, testArgSpecMissingError(commands)...)
2424
errors = append(errors, testCommandInvalidJSONExampleError(commands)...)
2525
errors = append(errors, testCommandInvalidSeeAlsoError(commands)...)
26+
errors = append(errors, testAtLeastOneSeeAlsoIsPresentError(commands)...)
2627

2728
errors = filterIgnore(errors)
2829

internal/qa/seealso.go

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,28 @@ func testCommandInvalidSeeAlsoError(commands *core.Commands) []error {
4444

4545
return errors
4646
}
47+
48+
type MissingSeeAlsoError struct {
49+
Command *core.Command
50+
}
51+
52+
func (err MissingSeeAlsoError) Error() string {
53+
return fmt.Sprintf("command has no see_also commands '%s'",
54+
err.Command.GetCommandLine("scw"),
55+
)
56+
}
57+
58+
// testAtLeastOneSeeAlsoIsPresentError testes that there is at least one SeeAlso defined by command
59+
func testAtLeastOneSeeAlsoIsPresentError(commands *core.Commands) []error {
60+
errors := []error(nil)
61+
62+
for _, command := range commands.GetAll() {
63+
if len(command.SeeAlsos) == 0 {
64+
errors = append(errors, &MissingSeeAlsoError{Command: command})
65+
66+
continue
67+
}
68+
}
69+
70+
return errors
71+
}

0 commit comments

Comments
 (0)