feat(init): Continue on template
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-08-09 21:37:57 +00:00
parent 3536298742
commit cf7901890c
13 changed files with 206 additions and 7 deletions

View File

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