fix(lint): Start to apply linter recommandation
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
12
cmd/init.go
12
cmd/init.go
@ -90,17 +90,17 @@ func runInitAction(cmd *cobra.Command, args []string) {
|
||||
}
|
||||
|
||||
// ask which API type we want to use
|
||||
var possibleApiTypes []string
|
||||
for _, apiType := range models.GetListOfApiTypeName() {
|
||||
possibleApiTypes = append(possibleApiTypes, string(apiType))
|
||||
var possibleAPITypes []string
|
||||
for _, apiType := range models.GetListOfAPITypeName() {
|
||||
possibleAPITypes = append(possibleAPITypes, string(apiType))
|
||||
}
|
||||
|
||||
log.Infof("Which kind of API do you want to init (possible values: %s)", strings.Join(possibleApiTypes, ", "))
|
||||
apiTypeName := helpers.ApiTypeNameInput()
|
||||
log.Infof("Which kind of API do you want to init (possible values: %s)", strings.Join(possibleAPITypes, ", "))
|
||||
apiTypeName := helpers.APITypeNameInput()
|
||||
|
||||
log.Debugf("Using api type : %s", string(apiTypeName))
|
||||
|
||||
apiType, err := api_types.GetApiType(apiTypeName)
|
||||
apiType, err := api_types.GetAPIType(apiTypeName)
|
||||
if err != nil {
|
||||
log.Error("Impossible to load that API Type generator")
|
||||
}
|
||||
|
Reference in New Issue
Block a user