hmarr / codeowners

🔒 Command line tool and Go library for CODEOWNERS files
MIT License
170 stars 20 forks source link

Feature Request: Given a path get codeowners #3

Closed dan-kez closed 3 years ago

dan-kez commented 3 years ago

Hello!

This is a nice utility! It would be extremely useful to have a command line argument that given a file path to print the associated codeowners.

hmarr commented 3 years ago

Thanks! It should already work like that. E.g.:

$ codeowners package.json
package.json                                                            @example-user

See the command line usage section of the README for details.

hmarr commented 3 years ago

(But let me know if I've misunderstood!)