Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1434 added repeatable prompt for output path of OpenApi generation #1445

Merged
merged 8 commits into from
Dec 27, 2021
Merged

#1434 added repeatable prompt for output path of OpenApi generation #1445

merged 8 commits into from
Dec 27, 2021

Conversation

jan-vcapgemini
Copy link
Collaborator

@jan-vcapgemini jan-vcapgemini commented Dec 15, 2021

Added repeatable prompt for output path of OpenApi generation if automatic detection of output path failed (if user just hits enter, the parent directory of the inputfile gets used as output directory)

set outputRootPath to absolute path in setOutputRootPath method

Adresses/Fixes #1434 .

Implements

@devonfw/cobigen

…f automatic detection of output path failed (if user just hits enter, the parent directory of the inputfile gets used as output directory)

set outputRootPath to absolute path in setOutputRootPath method
@jan-vcapgemini jan-vcapgemini changed the title #1434 added repeatable prompt for output path of OpenApi generation i… #1434 added repeatable prompt for output path of OpenApi generation Dec 15, 2021
@jan-vcapgemini jan-vcapgemini added this to the v2021.12.002 milestone Dec 15, 2021
changed inputFiles and outputRootPath from File to Path
set automatic output directory from parent directory of input file to current user directory
removed OpenApi input restriction
added extra check for multiple input files (cancels generation process)
@jan-vcapgemini
Copy link
Collaborator Author

Replaced the prompt for an output directory with a simpler yes/no prompt.

maybeec and others added 3 commits December 17, 2021 19:40
added new UserAbortException
moved getUserInput and yesNoPrompt to ValidationUtils
changed error code from 0 to 255
@maybeec maybeec modified the milestones: v2021.12.002, v2021.12.003 Dec 22, 2021
@maybeec maybeec merged commit 58917e4 into devonfw:master Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CobiGen CLI generate without output path does not work without a pom.xml
2 participants