Skip to content

Commit 98fcc97

Browse files
committed
Fix
1 parent df5d7f2 commit 98fcc97

File tree

3 files changed

+51
-11
lines changed

3 files changed

+51
-11
lines changed

internal/namespaces/info/custom.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ func GetCommands() *core.Commands {
1717
}
1818

1919
type setting struct {
20-
Key string
21-
Value string
22-
Origin string
20+
Key string `json:"key"`
21+
Value string `json:"value"`
22+
Origin string `json:"origin"`
2323
}
2424

2525
func infosRoot() *core.Command {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
🎲🎲🎲 EXIT CODE: 0 🎲🎲🎲
2+
🟩🟩🟩 STDOUT️ 🟩🟩🟩️
3+
KEY VALUE ORIGIN
4+
config_path /Users/sieben/.config/scw/config.yaml default
5+
default_region fr-par default
6+
default_zone fr-par-1 default
7+
default_organization_id 11111111-1111-1111-1111-111111111111 -
8+
access_key SCWXXXXXXXXXXXXXXXXX -
9+
secret_key 11111111-xxxx-xxxx-xxxx-xxxxxxxxxxxx -
10+
profile - -
11+
🟩🟩🟩 JSON STDOUT 🟩🟩🟩
12+
[
13+
{
14+
"key": "config_path",
15+
"value": "/Users/sieben/.config/scw/config.yaml",
16+
"origin": "default"
17+
},
18+
{
19+
"key": "default_region",
20+
"value": "fr-par",
21+
"origin": "default"
22+
},
23+
{
24+
"key": "default_zone",
25+
"value": "fr-par-1",
26+
"origin": "default"
27+
},
28+
{
29+
"key": "default_organization_id",
30+
"value": "11111111-1111-1111-1111-111111111111",
31+
"origin": ""
32+
},
33+
{
34+
"key": "access_key",
35+
"value": "SCWXXXXXXXXXXXXXXXXX",
36+
"origin": ""
37+
},
38+
{
39+
"key": "secret_key",
40+
"value": "11111111-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
41+
"origin": ""
42+
},
43+
{
44+
"key": "profile",
45+
"value": "",
46+
"origin": ""
47+
}
48+
]

internal/namespaces/info/testdata/test-info-default-simple.stdout.golden

-8
This file was deleted.

0 commit comments

Comments
 (0)