Skip to content

Commit 1a61e7a

Browse files
authored
Merge branch 'master' into v1.6116.0
2 parents b41ad44 + b248b68 commit 1a61e7a

File tree

60 files changed

+1970
-2085
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1970
-2085
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Build and push CLI doc to S3
22
on:
3+
workflow_dispatch:
34
release:
45
types:
56
- published # Triggered only when a new release is published

cmd/scw/testdata/test-all-usage-apple-silicon-server-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ARGS:
1111
[type] Create a server of the given type
1212
[os-id] Create a server with the given os_id
1313
[enable-vpc] Activate the Private Network feature for this server
14+
[commitment-type] Activate commitment for this server (duration_24h | renewed_monthly | none)
1415
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1516

1617
FLAGS:

cmd/scw/testdata/test-all-usage-apple-silicon-server-update-usage.golden

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ USAGE:
66
scw apple-silicon server update <server-id ...> [arg=value ...]
77

88
ARGS:
9-
server-id UUID of the server you want to update
10-
[name] Updated name for your server
11-
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
12-
[enable-vpc] Activate or deactivate Private Network support for this server
13-
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
9+
server-id UUID of the server you want to update
10+
[name] Updated name for your server
11+
[schedule-deletion] Specify whether the server should be flagged for automatic deletion
12+
[enable-vpc] Activate or deactivate Private Network support for this server
13+
[commitment-type.commitment-type] (duration_24h | renewed_monthly | none)
14+
[zone=fr-par-1] Zone to target. If none is passed will use default zone from the config (fr-par-3)
1415

1516
FLAGS:
1617
-h, --help help for update

core/alias_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package core_test
33
import (
44
"testing"
55

6-
"github.com/alecthomas/assert"
76
"github.com/scaleway/scaleway-cli/v2/core"
87
"github.com/scaleway/scaleway-cli/v2/internal/alias"
8+
"github.com/stretchr/testify/assert"
99
)
1010

1111
func TestCommandMatchAlias(t *testing.T) {

core/arg_specs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package core_test
33
import (
44
"testing"
55

6-
"github.com/alecthomas/assert"
76
"github.com/scaleway/scaleway-cli/v2/core"
7+
"github.com/stretchr/testify/assert"
88
)
99

1010
func TestOneOf(t *testing.T) {

core/bootstrap_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/alecthomas/assert"
98
"github.com/scaleway/scaleway-cli/v2/core"
109
"github.com/scaleway/scaleway-cli/v2/internal/args"
1110
"github.com/scaleway/scaleway-cli/v2/internal/interactive"
11+
"github.com/stretchr/testify/assert"
1212
)
1313

1414
func TestInterruptError(t *testing.T) {

core/build_info_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"testing"
88
"time"
99

10-
"github.com/alecthomas/assert"
1110
"github.com/hashicorp/go-version"
1211
"github.com/scaleway/scaleway-cli/v2/core"
1312
"github.com/scaleway/scaleway-cli/v2/internal/args"
1413
"github.com/scaleway/scaleway-sdk-go/scw"
14+
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/require"
1616
)
1717

core/checks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/alecthomas/assert"
1312
"github.com/scaleway/scaleway-cli/v2/core"
1413
iam "github.com/scaleway/scaleway-sdk-go/api/iam/v1alpha1"
1514
"github.com/scaleway/scaleway-sdk-go/scw"
15+
"github.com/stretchr/testify/assert"
1616
)
1717

1818
func TestCheckAPIKey(t *testing.T) {

core/cobra_usage_builder_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"reflect"
66
"testing"
77

8-
"github.com/alecthomas/assert"
98
"github.com/scaleway/scaleway-cli/v2/core"
9+
"github.com/stretchr/testify/assert"
1010
)
1111

1212
type ServerColor string

core/command_interceptor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/alecthomas/assert"
87
"github.com/scaleway/scaleway-cli/v2/core"
8+
"github.com/stretchr/testify/assert"
99
)
1010

1111
func Test_CombineCommandInterceptor(t *testing.T) {

0 commit comments

Comments
 (0)