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

feat: Init command not using template properties's default value #1232

Conversation

nandorholozsnyak
Copy link
Contributor

  • Removing getter and setter pairs from TemplateProperty and using public modifier
  • Applying template property defaults in init command by default, option to disable.
  • Documentation for the new option

Solves this: #1231

- Removing getter and setter pairs from TemplateProperty and using public modifier
- Applying template property defaults in init command by default, option to disable.
- Documentation for the new option
@codecov
Copy link

codecov bot commented Feb 7, 2022

Codecov Report

Merging #1232 (c91b534) into main (d12a0a4) will increase coverage by 0.12%.
The diff coverage is 87.50%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1232      +/-   ##
============================================
+ Coverage     58.26%   58.39%   +0.12%     
- Complexity     1060     1065       +5     
============================================
  Files            86       86              
  Lines          5756     5761       +5     
  Branches        976      978       +2     
============================================
+ Hits           3354     3364      +10     
+ Misses         1906     1901       -5     
  Partials        496      496              
Flag Coverage Δ
Linux 57.16% <87.50%> (+0.12%) ⬆️
Windows 57.16% <87.50%> (+0.12%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../main/java/dev/jbang/catalog/TemplateProperty.java 42.85% <0.00%> (+15.07%) ⬆️
src/main/java/dev/jbang/cli/Init.java 85.71% <100.00%> (+1.02%) ⬆️
src/main/java/dev/jbang/cli/Run.java 74.50% <0.00%> (+0.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d12a0a4...c91b534. Read the comment docs.

@quintesse
Copy link
Contributor

Personally I don't see much use for an option that doesn't apply default values. Do you @maxandersen ?

@maxandersen
Copy link
Collaborator

Yeah. Same. No need to be able to turn this off.

maxandersen
maxandersen previously approved these changes Feb 11, 2022
Copy link
Collaborator

@maxandersen maxandersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed update that removes the flag. if pass ci good to go.

@maxandersen maxandersen merged commit d477cf4 into jbangdev:main Feb 11, 2022
@nandorholozsnyak
Copy link
Contributor Author

Sorry for not responding for the change requests, I'm on "holiday", thank you for the changes and merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants