wide-midnight-78598
03/22/2023, 12:17 PMbitter-ability-32190
03/22/2023, 1:05 PMpeek
?wide-midnight-78598
03/22/2023, 1:08 PMpeek
is a per-target thing I believe, not like ... list
or filter
bitter-ability-32190
03/22/2023, 1:09 PMwide-midnight-78598
03/22/2023, 1:11 PMpants some-command
examples/hellopython/BUILD.pants
examples/hellofastapi/BUILD
examples/hellotyper/BUILD.weirdext
Ignoring why a repo would do that, I'm trying to get the filename/path that a target belongs to .bitter-ability-32190
03/22/2023, 1:12 PMwide-midnight-78598
03/22/2023, 1:15 PM⏺ oss/pants-plugins % pants peek examples/python/hellofastapi:libhellofastapi
[
{
"address": "examples/python/hellofastapi:libhellofastapi",
"target_type": "python_sources",
"dependencies": [
"examples/python/hellofastapi/hellofastapi/__init__.py:../libhellofastapi",
"examples/python/hellofastapi/hellofastapi/main.py:../libhellofastapi"
],
"description": null,
"overrides": null,
"skip_autoflake": false,
"skip_bandit": false,
"skip_black": false,
"skip_flake8": false,
"skip_isort": false,
"skip_mypy": false,
"skip_pyupgrade": false,
"sources": [
"examples/python/hellofastapi/hellofastapi/__init__.py",
"examples/python/hellofastapi/hellofastapi/main.py"
],
"sources_raw": [
"**/*.py"
],
"tags": null
}
]
What am I filtering there?bitter-ability-32190
03/22/2023, 1:29 PMwide-midnight-78598
03/22/2023, 1:32 PMYeah I'm saying we could expose the name through peek (if it already isn't there) that's metadata on a targetOh yeah, for sure this.
so grep/sed/whatever and pants.toml won't work alwaysReading pants.toml build patterns and dirty grep's FTW
curved-television-6568
03/22/2023, 2:47 PMwide-midnight-78598
03/22/2023, 2:49 PMcc_binary
and on context menu click, you can package
it or whatever)bitter-ability-32190
03/22/2023, 2:50 PMwide-midnight-78598
03/22/2023, 2:53 PMcurved-television-6568
03/22/2023, 2:53 PMwide-midnight-78598
03/22/2023, 2:59 PMpeek
multiple targets - always assumed it was a 1 target kinda thingcurved-television-6568
03/22/2023, 3:00 PMwide-midnight-78598
03/22/2023, 3:01 PMcurved-television-6568
03/22/2023, 3:56 PMwide-midnight-78598
03/22/2023, 3:59 PMbitter-ability-32190
03/22/2023, 4:02 PMTarget
instance?curved-television-6568
03/22/2023, 4:05 PMwide-midnight-78598
03/22/2023, 4:06 PMpath/to/buildfile:targetname
? That's not how parse works, is it? Isn't it the path to the folder?curved-television-6568
03/22/2023, 4:08 PMAddressFamily
that will have the BUILD file path (including filename of the thing itself I believe)wide-midnight-78598
03/22/2023, 4:12 PMcurved-television-6568
03/22/2023, 4:14 PMenough-analyst-54434
03/23/2023, 3:45 PMwide-midnight-78598
03/24/2023, 4:56 AM