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

Add field:info command #4928

Merged
merged 6 commits into from Dec 15, 2021
Merged

Add field:info command #4928

merged 6 commits into from Dec 15, 2021

Conversation

DieterHolvoet
Copy link
Contributor

@DieterHolvoet DieterHolvoet commented Dec 12, 2021

This PR adds a command to show information about fields, similar to the field-info command that was present in Drush 8. It has already been used in multiple projects as part of the wmscaffold module and is in my opinion stable enough to be considered to be merged in Drush.

Remarks

Test scenarios

  • ./vendor/bin/drush fi => Not enough arguments (missing: "entityType").
  • ./vendor/bin/drush fi node => Asks for bundle
  • ./vendor/bin/drush fi node --no-interaction => The bundle argument is required.
  • ./vendor/bin/drush fi node article => Lists the default columns
  • ./vendor/bin/drush fi node article --fields=field_name,field_type => Lists only the field name and field type columns

TODO

  • Add tests

@weitzman weitzman merged commit 5794cdd into drush-ops:11.x Dec 15, 2021
@DieterHolvoet DieterHolvoet deleted the field-info branch December 15, 2021 15:28
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