Skip to content

Commit 65b13ae

Browse files
authored
feat: update generated cli (#1672)
1 parent 3f6c6fd commit 65b13ae

19 files changed

+25
-54
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ require (
2222
github.com/mattn/go-colorable v0.1.7
2323
github.com/mattn/go-isatty v0.0.12
2424
github.com/pkg/errors v0.9.1 // indirect
25-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210104102201-c1581bd3f961
25+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210118180419-87b8b277149c
2626
github.com/sergi/go-diff v1.1.0 // indirect
2727
github.com/spf13/cobra v1.0.0
2828
github.com/spf13/pflag v1.0.5

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7z
118118
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
119119
github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
120120
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
121-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210104102201-c1581bd3f961 h1:77+4aSKjBGBmgifdCZ1YSGPDwAcgJNTqbiJKqORl36E=
122-
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210104102201-c1581bd3f961/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8=
121+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210118180419-87b8b277149c h1:NDAovDzT4JfgX7k/ED0Y5/swOtsIsDCRQMzzqPh3yA0=
122+
github.com/scaleway/scaleway-sdk-go v1.0.0-beta.7.0.20210118180419-87b8b277149c/go.mod h1:CJJ5VAbozOl0yEw7nHB9+7BXTJbIn6h7W+f6Gau5IP8=
123123
github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
124124
github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
125125
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=

internal/e2e/testdata/test-human-create-simple.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ EyesColor unknown
1515
Status stopped
1616
Name -
1717
ProjectID 11111111-1111-1111-1111-111111111111
18-
Region fr-par
1918
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
2019
{
2120
"id": "0194fdc2-fa2f-fcc0-41d3-ff12045b73c8",
@@ -32,6 +31,5 @@ Region fr-par
3231
"eyes_color": "unknown",
3332
"status": "stopped",
3433
"name": "",
35-
"project_id": "11111111-1111-1111-1111-111111111111",
36-
"region": "fr-par"
34+
"project_id": "11111111-1111-1111-1111-111111111111"
3735
}

internal/e2e/testdata/test-human-create-usage.golden

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ ARGS:
2121
[name]
2222
[project-id] Project ID to use. If none is passed the default project ID will be used
2323
[organization-id] Organization ID to use. If none is passed the default organization ID will be used
24-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
2524

2625
FLAGS:
2726
-h, --help help for create

internal/e2e/testdata/test-human-create-with-args.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ EyesColor amber
1515
Status stopped
1616
Name -
1717
ProjectID b3ba839a-dcf2-4b0a-ac81-fc32370052a0
18-
Region fr-par
1918
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
2019
{
2120
"id": "0194fdc2-fa2f-fcc0-41d3-ff12045b73c8",
@@ -32,6 +31,5 @@ Region fr-par
3231
"eyes_color": "amber",
3332
"status": "stopped",
3433
"name": "",
35-
"project_id": "b3ba839a-dcf2-4b0a-ac81-fc32370052a0",
36-
"region": "fr-par"
34+
"project_id": "b3ba839a-dcf2-4b0a-ac81-fc32370052a0"
3735
}

internal/e2e/testdata/test-human-delete-simple.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ EyesColor blue
1515
Status stopped
1616
Name -
1717
ProjectID b3ba839a-dcf2-4b0a-ac81-fc32370052a0
18-
Region fr-par
1918
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
2019
{
2120
"id": "0194fdc2-fa2f-fcc0-41d3-ff12045b73c8",
@@ -32,6 +31,5 @@ Region fr-par
3231
"eyes_color": "blue",
3332
"status": "stopped",
3433
"name": "",
35-
"project_id": "b3ba839a-dcf2-4b0a-ac81-fc32370052a0",
36-
"region": "fr-par"
34+
"project_id": "b3ba839a-dcf2-4b0a-ac81-fc32370052a0"
3735
}

internal/e2e/testdata/test-human-delete-usage.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ USAGE:
66
scw test human delete <human-id ...> [arg=value ...]
77

88
ARGS:
9-
human-id UUID of the human you want to delete
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
9+
human-id UUID of the human you want to delete
1110

1211
FLAGS:
1312
-h, --help help for delete

internal/e2e/testdata/test-human-get-invalid-arg-name.golden

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
Unknown argument 'invalid'
44

55
Hint:
6-
Valid arguments are: human-id, region
6+
Valid arguments are: human-id
77
🟥🟥🟥 JSON STDERR 🟥🟥🟥
88
{
99
"message": "unknown argument 'invalid'",
1010
"error": {},
11-
"hint": "Valid arguments are: human-id, region"
11+
"hint": "Valid arguments are: human-id"
1212
}

internal/e2e/testdata/test-human-get-simple.golden

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ EyesColor blue
1515
Status stopped
1616
Name -
1717
ProjectID b3ba839a-dcf2-4b0a-ac81-fc32370052a0
18-
Region fr-par
1918
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
2019
{
2120
"id": "0194fdc2-fa2f-fcc0-41d3-ff12045b73c8",
@@ -32,6 +31,5 @@ Region fr-par
3231
"eyes_color": "blue",
3332
"status": "stopped",
3433
"name": "",
35-
"project_id": "b3ba839a-dcf2-4b0a-ac81-fc32370052a0",
36-
"region": "fr-par"
34+
"project_id": "b3ba839a-dcf2-4b0a-ac81-fc32370052a0"
3735
}

internal/e2e/testdata/test-human-get-usage.golden

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ USAGE:
66
scw test human get <human-id ...> [arg=value ...]
77

88
ARGS:
9-
human-id UUID of the human you want to get
10-
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
9+
human-id UUID of the human you want to get
1110

1211
FLAGS:
1312
-h, --help help for get

0 commit comments

Comments
 (0)