@@ -54,10 +54,10 @@ See below the schema `scw init` follows to ask for default config:
54
54
*/
55
55
56
56
func GetCommands () * core.Commands {
57
- return core .NewCommands (InitCommand ())
57
+ return core .NewCommands (Command ())
58
58
}
59
59
60
- type InitArgs struct {
60
+ type Args struct {
61
61
AccessKey string
62
62
SecretKey string
63
63
ProjectID string
@@ -70,7 +70,7 @@ type InitArgs struct {
70
70
InstallAutocomplete * bool
71
71
}
72
72
73
- func InitCommand () * core.Command {
73
+ func Command () * core.Command {
74
74
return & core.Command {
75
75
Groups : []string {"config" },
76
76
Short : `Initialize the config` ,
@@ -83,7 +83,7 @@ Default path for configuration file is based on the following priority order:
83
83
- $USERPROFILE/.config/scw/config.yaml` ,
84
84
Namespace : "init" ,
85
85
AllowAnonymousClient : true ,
86
- ArgsType : reflect .TypeOf (InitArgs {}),
86
+ ArgsType : reflect .TypeOf (Args {}),
87
87
ArgSpecs : core.ArgSpecs {
88
88
{
89
89
Name : "secret-key" ,
@@ -132,7 +132,7 @@ Default path for configuration file is based on the following priority order:
132
132
},
133
133
},
134
134
Run : func (ctx context.Context , argsI interface {}) (i interface {}, e error ) {
135
- args := argsI .(* InitArgs )
135
+ args := argsI .(* Args )
136
136
137
137
profileName := core .ExtractProfileName (ctx )
138
138
configPath := core .ExtractConfigPath (ctx )
0 commit comments