diff --git a/cmd/scw/testdata/test-all-usage-fip-ip-delete-usage.golden b/cmd/scw/testdata/test-all-usage-fip-ip-delete-usage.golden index 0cd9bb2636..80bcbacebe 100644 --- a/cmd/scw/testdata/test-all-usage-fip-ip-delete-usage.golden +++ b/cmd/scw/testdata/test-all-usage-fip-ip-delete-usage.golden @@ -3,7 +3,7 @@ Delete a Flexible IP. USAGE: - scw fip ip delete [arg=value ...] + scw fip ip delete [arg=value ...] ARGS: fip-id ID of the Flexible IP to delete diff --git a/cmd/scw/testdata/test-all-usage-fip-ip-update-usage.golden b/cmd/scw/testdata/test-all-usage-fip-ip-update-usage.golden index e62afa1513..8d1b9cee39 100644 --- a/cmd/scw/testdata/test-all-usage-fip-ip-update-usage.golden +++ b/cmd/scw/testdata/test-all-usage-fip-ip-update-usage.golden @@ -3,7 +3,7 @@ Update a Flexible IP. USAGE: - scw fip ip update [arg=value ...] + scw fip ip update [arg=value ...] ARGS: fip-id ID of the Flexible IP to update diff --git a/internal/namespaces/flexibleip/v1alpha1/flexibleip_cli.go b/internal/namespaces/flexibleip/v1alpha1/flexibleip_cli.go index 0f0886f658..f4522b3c9e 100644 --- a/internal/namespaces/flexibleip/v1alpha1/flexibleip_cli.go +++ b/internal/namespaces/flexibleip/v1alpha1/flexibleip_cli.go @@ -212,6 +212,41 @@ func fipIPList() *core.Command { return resp.FlexibleIPs, nil }, + View: &core.View{Fields: []*core.ViewField{ + { + FieldName: "ID", + }, + { + FieldName: "IPAddress", + }, + { + FieldName: "Status", + }, + { + FieldName: "Reverse", + }, + { + FieldName: "ServerID", + }, + { + FieldName: "Description", + }, + { + FieldName: "Tags", + }, + { + FieldName: "ProjectID", + }, + { + FieldName: "OrganizationID", + }, + { + FieldName: "UpdatedAt", + }, + { + FieldName: "CreatedAt", + }, + }}, } } @@ -230,7 +265,7 @@ func fipIPUpdate() *core.Command { Short: `ID of the Flexible IP to update`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, { Name: "description", @@ -281,7 +316,7 @@ func fipIPDelete() *core.Command { Short: `ID of the Flexible IP to delete`, Required: true, Deprecated: false, - Positional: false, + Positional: true, }, core.ZoneArgSpec(scw.ZoneFrPar2), },