highb / pathspec-ruby

Match Path Specifications, such as .gitignore, in Ruby!
Apache License 2.0
23 stars 9 forks source link

Add basic CLI #23

Closed highb closed 6 years ago

highb commented 6 years ago

This PR adds a basic CLI to the gem that allows you to test a few scenarios against your spec file quickly.

Provided Subcommands: specs_match: Finds all specs matching path. tree: Finds all files under path matching the spec. match: Checks if the path matches any spec.

Providing the -f option lets you load in a file other than .gitignore Providing the -t regex options lets you read a file full of regexes as your spec.

Closes #15

highb commented 6 years ago

Specs pass fine locally, Travis appears to be stuck waiting for a container to run it.