Skip to content

Pants peek goal #4861

@wisechengyi

Description

@wisechengyi

Borrowing @baroquebobcat 's idea, sometimes it is good to have a quick peek on the target declaration, because a BUILD can get large and contain multiple target declarations, so the peek goal will just show

Example:
In foo/bar/BUILD file:

target(name = 'a',
  dependencies=['other:targets', 'that:might', 'be/useful:to-show']
)

target(name = 'b',
  dependencies=['other:targets', 'that:might', 'be/useful:to-show']
)

target(name = 'c',
  dependencies=['other:targets', 'that:might', 'be/useful:to-show']
)

Result

./pants peek foo/bar:a
# target/to/BUILD:1 // line number
target(name = 'a',
  dependencies=['other:targets', 'that:might', 'be/useful:to-show']
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions