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

Option to only show filenames with -o? #35

Open
aisrael opened this issue Nov 22, 2024 · 0 comments
Open

Option to only show filenames with -o? #35

aisrael opened this issue Nov 22, 2024 · 0 comments

Comments

@aisrael
Copy link

aisrael commented Nov 22, 2024

Context

When using -o to filter results owned by a specific owner, it displays the filename then the owner, e.g.:

example_test.go                      @example/go-engineers
example.go                           @example/go-engineers

When using this in scripts, we'd then have to extract the file only, e.g.:

codeowners -o @example/go-engineers | cut -d ' ' -f 1 | xargs ...

Request

Provide an additional flag or option, for example --filenames-only, so we can then simply go:

codeowners -o @example/go-engineers --filenames-only | xargs ...
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

No branches or pull requests

1 participant