fix(clean): Fix import order, func name, ...
This commit is contained in:
10
cmd/init.go
10
cmd/init.go
@ -92,9 +92,15 @@ func runInitAction(cmd *cobra.Command, args []string) {
|
||||
}
|
||||
|
||||
log.Infof("Which kind of API do you want to init (possible values: %s)", strings.Join(possibleApiTypes, ", "))
|
||||
apiType := helpers.ApiTypeInput()
|
||||
apiTypeName := helpers.ApiTypeNameInput()
|
||||
|
||||
log.Debugf("Using api type : %s", string(apiTypeName))
|
||||
|
||||
_, err = api_type.GetApiType(apiTypeName)
|
||||
if err != nil {
|
||||
log.Error("Impossible to load that API Type generator")
|
||||
}
|
||||
|
||||
log.Debugf("Using api type : %s", apiType)
|
||||
// XXX:
|
||||
// Check we are in gopath or ask for the gomod name
|
||||
// Create directory
|
||||
|
Reference in New Issue
Block a user