Skip to content

Option to only show filenames with -o? #35

Description

@aisrael

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 ...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions