-
Notifications
You must be signed in to change notification settings - Fork 34
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
Add Recipe Catalog #161
base: main
Are you sure you want to change the base?
Add Recipe Catalog #161
Conversation
Optional<Recipe> recipeFound = recipeCatalog.lookup(recipeId, parameterMap); | ||
if (recipeFound.isPresent()) { | ||
Recipe recipe = recipeFound.get(); | ||
rewriteRecipeLauncher.run(recipe, path); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to TerminalMessage the user here in an else block.
"Could not find recipe..."
src/main/java/org/springframework/cli/command/recipe/RecipeClassLoader.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/cli/command/RewriteRecipeCommands.java
Outdated
Show resolved
Hide resolved
src/main/java/org/springframework/cli/command/recipe/RecipeParameterParser.java
Show resolved
Hide resolved
src/main/java/org/springframework/cli/command/recipe/catalog/RecipeCatalogEntries.java
Outdated
Show resolved
Hide resolved
Some files are missing license header. There's a lot of space instead of tabs we should use. |
377ea12
to
0dbf48e
Compare
Cries for Spring Java Format & some license-check plugin? |
the point was more so to pick a simple OR recipe...but I get the point. |
when I run the app, it just exits. I don't have this issue in the main branch.
Enabled logging and got the error that a bean was not found. Adding |
not sure how to run this.. tried
|
Hey @fabapp2, is this still being worked on? |
Add a simple Recipe Catalog as YAML in
src/main/resources
.The catalog declares one recipe
AddLicenseHeader
which can be applied byspring recipe-catalog apply <recipe-id> <params> <path>
.