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']
)
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
peekgoal will just showExample:
In
foo/bar/BUILDfile:Result