diff --git a/cmd/scw/testdata/test-all-usage-cockpit-data-source-delete-usage.golden b/cmd/scw/testdata/test-all-usage-cockpit-data-source-delete-usage.golden index 80358da5da..834a0b80b5 100644 --- a/cmd/scw/testdata/test-all-usage-cockpit-data-source-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-cockpit-data-source-delete-usage.golden @@ -3,7 +3,7 @@ Delete a given data source. Note that this action will permanently delete this data source and any data associated with it. USAGE: - scw cockpit data-source delete [arg=value ...] + scw cockpit data-source delete [arg=value ...] ARGS: data-source-id ID of the data source to delete diff --git a/cmd/scw/testdata/test-all-usage-cockpit-data-source-get-usage.golden b/cmd/scw/testdata/test-all-usage-cockpit-data-source-get-usage.golden index d25b1e1e0f..a6bd247a21 100644 --- a/cmd/scw/testdata/test-all-usage-cockpit-data-source-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-cockpit-data-source-get-usage.golden @@ -3,7 +3,7 @@ Retrieve information about a given data source, specified by the data source ID. The data source's information such as its name, type, URL, origin, and retention period, is returned. USAGE: - scw cockpit data-source get [arg=value ...] + scw cockpit data-source get [arg=value ...] ARGS: data-source-id ID of the relevant data source diff --git a/cmd/scw/testdata/test-all-usage-cockpit-data-source-update-usage.golden b/cmd/scw/testdata/test-all-usage-cockpit-data-source-update-usage.golden index 43f01f8578..3129869388 100644 --- a/cmd/scw/testdata/test-all-usage-cockpit-data-source-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-cockpit-data-source-update-usage.golden @@ -3,7 +3,7 @@ Update a given data source attributes (name and/or retention_days). USAGE: - scw cockpit data-source update [arg=value ...] + scw cockpit data-source update [arg=value ...] ARGS: data-source-id ID of the data source to update diff --git a/cmd/scw/testdata/test-all-usage-cockpit-token-delete-usage.golden b/cmd/scw/testdata/test-all-usage-cockpit-token-delete-usage.golden index de308ef90b..4b9032b026 100644 --- a/cmd/scw/testdata/test-all-usage-cockpit-token-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-cockpit-token-delete-usage.golden @@ -3,7 +3,7 @@ Delete a given token, specified by the token ID. Deleting a token is irreversible and cannot be undone. USAGE: - scw cockpit token delete [arg=value ...] + scw cockpit token delete [arg=value ...] ARGS: token-id ID of the token to delete diff --git a/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden b/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden index a887a3a373..5933216d20 100644 --- a/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden @@ -3,7 +3,7 @@ Retrieve information about a given token, specified by the token ID. The token's information such as its scopes, is returned. USAGE: - scw cockpit token get [arg=value ...] + scw cockpit token get [arg=value ...] ARGS: token-id Token ID diff --git a/docs/commands/cockpit.md b/docs/commands/cockpit.md index cb049040ef..9501c557f0 100644 --- a/docs/commands/cockpit.md +++ b/docs/commands/cockpit.md @@ -217,7 +217,7 @@ Delete a given data source. Note that this action will permanently delete this d **Usage:** ``` -scw cockpit data-source delete [arg=value ...] +scw cockpit data-source delete [arg=value ...] ``` @@ -237,7 +237,7 @@ Retrieve information about a given data source, specified by the data source ID. **Usage:** ``` -scw cockpit data-source get [arg=value ...] +scw cockpit data-source get [arg=value ...] ``` @@ -280,7 +280,7 @@ Update a given data source attributes (name and/or retention_days). **Usage:** ``` -scw cockpit data-source update [arg=value ...] +scw cockpit data-source update [arg=value ...] ``` @@ -643,7 +643,7 @@ Delete a given token, specified by the token ID. Deleting a token is irreversibl **Usage:** ``` -scw cockpit token delete [arg=value ...] +scw cockpit token delete [arg=value ...] ``` @@ -663,7 +663,7 @@ Retrieve information about a given token, specified by the token ID. The token's **Usage:** ``` -scw cockpit token get [arg=value ...] +scw cockpit token get [arg=value ...] ``` diff --git a/go.mod b/go.mod index 9c4c613159..d316a87018 100644 --- a/go.mod +++ b/go.mod @@ -23,7 +23,7 @@ require ( github.com/mattn/go-isatty v0.0.20 github.com/moby/buildkit v0.24.0 github.com/opencontainers/go-digest v1.0.0 - github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250912134829-9294f115f3d2 + github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20250915122732-e1e0d6a999c6 github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 github.com/spf13/cobra v1.10.1 github.com/spf13/pflag v1.0.10 diff --git a/go.sum b/go.sum index 0df5b37aaa..77ad9c6b97 100644 --- a/go.sum +++ b/go.sum @@ -460,8 +460,8 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250912134829-9294f115f3d2 h1:WeANDlfGb3oFt08xg4TVd+zmVfif6/9uVXXMjg7Jgr4= -github.com/scaleway/scaleway-sdk-go v1.0.0-beta.34.0.20250912134829-9294f115f3d2/go.mod h1:47B1d/YXmSAxlJxUJxClzHR6b3T4M1WyCvwENPQNBWc= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20250915122732-e1e0d6a999c6 h1:Jps8nJ4Sc+BbZrNzbmKtwDWTU8mn7ar9u9LdkFw5ddU= +github.com/scaleway/scaleway-sdk-go v1.0.0-beta.35.0.20250915122732-e1e0d6a999c6/go.mod h1:47B1d/YXmSAxlJxUJxClzHR6b3T4M1WyCvwENPQNBWc= github.com/sclevine/spec v1.4.0 h1:z/Q9idDcay5m5irkZ28M7PtQM4aOISzOpj4bUPkDee8= github.com/sclevine/spec v1.4.0/go.mod h1:LvpgJaFyvQzRvc1kaDs0bulYwzC70PbiYjC4QnFHkOM= github.com/secure-systems-lab/go-securesystemslib v0.8.0 h1:mr5An6X45Kb2nddcFlbmfHkLguCE9laoZCUzEEpIZXA= diff --git a/internal/namespaces/cockpit/v1/cockpit_cli.go b/internal/namespaces/cockpit/v1/cockpit_cli.go index ce37f82e09..901707c6ab 100644 --- a/internal/namespaces/cockpit/v1/cockpit_cli.go +++ b/internal/namespaces/cockpit/v1/cockpit_cli.go @@ -610,7 +610,7 @@ func cockpitDataSourceGet() *core.Command { Short: `ID of the relevant data source`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, core.RegionArgSpec( scw.RegionFrPar, @@ -644,7 +644,7 @@ func cockpitDataSourceDelete() *core.Command { Short: `ID of the data source to delete`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, core.RegionArgSpec( scw.RegionFrPar, @@ -764,7 +764,7 @@ func cockpitDataSourceUpdate() *core.Command { Short: `ID of the data source to update`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, { Name: "name", @@ -972,7 +972,7 @@ func cockpitTokenGet() *core.Command { Short: `Token ID`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, core.RegionArgSpec( scw.RegionFrPar, @@ -1006,7 +1006,7 @@ func cockpitTokenDelete() *core.Command { Short: `ID of the token to delete`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, core.RegionArgSpec( scw.RegionFrPar,