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 support for checking multiple paths (implements #63) #67

Merged
merged 1 commit into from
May 8, 2019
Merged

Add support for checking multiple paths (implements #63) #67

merged 1 commit into from
May 8, 2019

Conversation

colinodell
Copy link
Contributor

@colinodell colinodell commented May 7, 2019

The CommandHelper already supports multiple paths - we just need to modify our code to provide them.

I'll leave a couple of additional inline comments to explain some of the changes I made.

Fixes #63

Copy link
Owner

@mglaman mglaman left a comment

Choose a reason for hiding this comment

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

The only thing we are missing is some test coverage otherwise this looks fine!

Can you take the test_drupal job in the .circleci/config.yaml and add

      - run:
          name: Phar - Run against multiple paths
          command: |
            php drupal-check.phar /tmp/drupal/core/install.php /tmp/drupal/core/modules/dynamic_page_cache -vvv

Maybe after name: Phar - Run against a module.

@colinodell
Copy link
Contributor Author

Thanks for the feedback! I have added that additional test. I also made another small tweak to the README:

 Usage:
 
   ```
-  drupal-check [OPTIONS] [DIR]
+  drupal-check [OPTIONS] [DIRS]
   ```
 
 Arguments:
 
 * `OPTIONS` - See "Options" for allowed values. Specify multiples in sequence, e.g. `-ad`.
-* `DIR` - One or more directories within the root of a Drupal project.
+* `DIRS` - One or more directories within the root of a Drupal project.

Changes have been squashed and pushed for your review.

@mglaman
Copy link
Owner

mglaman commented May 8, 2019

Thanks so much for this, it's great. Merging!

@mglaman mglaman merged commit 49507e6 into mglaman:master May 8, 2019
@colinodell colinodell deleted the feature/multiple-paths branch May 8, 2019 14:42
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.

Feature Request: Check multiple paths
2 participants