Skip to content

Option to only show filenames with -o? #35

Open
@aisrael

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

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