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

Clarify options on CreateCommand #223

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Clarify options on CreateCommand #223

merged 1 commit into from
Oct 19, 2023

Conversation

Tigrov
Copy link
Member

@Tigrov Tigrov commented Oct 19, 2023

Q A
Is bugfix?
New feature?
Breaks BC?
Fixed issues -

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (024c175) 99.79% compared to head (7f1ec15) 99.79%.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #223   +/-   ##
=========================================
  Coverage     99.79%   99.79%           
+ Complexity      290      288    -2     
=========================================
  Files            19       19           
  Lines           957      957           
=========================================
  Hits            955      955           
  Misses            2        2           
Files Coverage Δ
src/Command/CreateCommand.php 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +81 to +84
->addOption('command', 'c', InputOption::VALUE_REQUIRED, 'Command to execute.', 'create')
->addOption('fields', 'f', InputOption::VALUE_REQUIRED, 'Table fields to generate.')
->addOption('table-comment', null, InputOption::VALUE_REQUIRED, 'Table comment.')
->addOption('and', null, InputOption::VALUE_REQUIRED, 'And junction.')
Copy link
Member

Choose a reason for hiding this comment

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

Are these really required?

Copy link
Member Author

Choose a reason for hiding this comment

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

It means if you call the command with an option you should specify a value.

It makes no sense to call the command with these options without values.

e.g. ./yii migrate:create post --command

@samdark samdark merged commit 8b2c1d2 into master Oct 19, 2023
78 of 79 checks passed
@samdark samdark deleted the сlarify_create_options branch October 19, 2023 17:17
@samdark
Copy link
Member

samdark commented Oct 19, 2023

👍

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

2 participants