Skip to content

Commit e8d3cc6

Browse files
feat(registry): deprecate delete tag force field (#3158)
Co-authored-by: Rémy Léone <[email protected]>
1 parent c7d6d5f commit e8d3cc6

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

cmd/scw/testdata/test-all-usage-registry-tag-delete-usage.golden

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ USAGE:
77

88
ARGS:
99
tag-id UUID of the tag
10-
[force] If two tags share the same digest the deletion will fail unless this parameter is set to true
1110
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par | nl-ams | pl-waw)
1211

12+
DEPRECATED ARGS:
13+
[force] If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated)
14+
1315
FLAGS:
1416
-h, --help help for delete
1517

docs/commands/registry.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ scw registry tag delete <tag-id ...> [arg=value ...]
335335
| Name | | Description |
336336
|------|---|-------------|
337337
| tag-id | Required | UUID of the tag |
338-
| force | | If two tags share the same digest the deletion will fail unless this parameter is set to true |
338+
| ~~force~~ | Deprecated | If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated) |
339339
| region | Default: `fr-par`<br />One of: `fr-par`, `nl-ams`, `pl-waw` | Region to target. If none is passed will use default region from the config |
340340

341341

internal/namespaces/registry/v1/registry_cli.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,9 @@ func registryTagDelete() *core.Command {
638638
},
639639
{
640640
Name: "force",
641-
Short: `If two tags share the same digest the deletion will fail unless this parameter is set to true`,
641+
Short: `If two tags share the same digest the deletion will fail unless this parameter is set to true (deprecated)`,
642642
Required: false,
643-
Deprecated: false,
643+
Deprecated: true,
644644
Positional: false,
645645
},
646646
core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms, scw.RegionPlWaw),

0 commit comments

Comments
 (0)