fix(clean): Fix import order, func name, ...

This commit is contained in:
Matthieu 'JP' DERASSE
2022-07-25 20:57:00 +00:00
parent f7e9aa7dfb
commit a3c953c7a4
5 changed files with 32 additions and 11 deletions

View File

@ -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