feat(init): Continue on template
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -124,7 +124,7 @@ func runInitAction(cmd *cobra.Command, args []string) {
|
||||
|
||||
// ask project name
|
||||
log.Info("Name of the project:")
|
||||
config.ProjectName = helpers.StringInput()
|
||||
config.ProjectName = helpers.AlphanumericalAndSpaceInput()
|
||||
|
||||
// ask project description
|
||||
log.Info("Description of the project:")
|
||||
@ -188,4 +188,9 @@ func runInitAction(cmd *cobra.Command, args []string) {
|
||||
}
|
||||
|
||||
log.Info("Creating API skeleton")
|
||||
err = apiType.CreateProjectSkeleton(projectDirPath, config)
|
||||
if err != nil {
|
||||
log.Errorf("Fail to create the project skeleton. The following error happen: %s", err.Error())
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user