witty-crayon-22786
01/07/2019, 7:50 PMaloof-angle-91616
01/07/2019, 7:50 PMaloof-angle-91616
01/07/2019, 7:51 PMaloof-angle-91616
01/07/2019, 7:51 PMaloof-angle-91616
01/07/2019, 7:52 PM./pants test ::
so if we want to allow that then hmwitty-crayon-22786
01/07/2019, 7:52 PMtest
on all things for which you can run test" is sortof a tautology.aloof-angle-91616
01/07/2019, 7:53 PMtest
goal for all target types (with an easy way to default to no-op? not sure if that misses the point though)aloof-angle-91616
01/07/2019, 7:53 PMaloof-angle-91616
01/07/2019, 7:54 PMaverage-vr-56795
01/07/2019, 7:56 PMwitty-crayon-22786
01/07/2019, 7:56 PMaverage-vr-56795
01/07/2019, 7:58 PMwitty-crayon-22786
01/07/2019, 7:58 PMwitty-crayon-22786
01/07/2019, 7:58 PMwitty-crayon-22786
01/07/2019, 7:59 PMaloof-angle-91616
01/07/2019, 7:59 PMwitty-crayon-22786
01/07/2019, 7:59 PM./pants bundle dir/::
... that's probably what i wanted (again, unless nothing was bundlable there)average-vr-56795
01/07/2019, 8:00 PMaverage-vr-56795
01/07/2019, 8:01 PMaloof-angle-91616
01/07/2019, 8:02 PMwitty-crayon-22786
01/07/2019, 8:02 PM./pants --changed... list
aloof-angle-91616
01/07/2019, 8:02 PMwitty-crayon-22786
01/07/2019, 8:02 PMaverage-vr-56795
01/07/2019, 8:02 PMaloof-angle-91616
01/07/2019, 8:03 PMwitty-crayon-22786
01/07/2019, 8:03 PM./pants --changed.. bundle
?average-vr-56795
01/07/2019, 8:04 PM--changed
should be a global flag :)aloof-angle-91616
01/07/2019, 8:04 PM./pants --changed.. publish
too is another good example maybewitty-crayon-22786
01/07/2019, 8:04 PMaloof-angle-91616
01/07/2019, 8:04 PM--changed
as well as filter
options could be merged into the same interfaceaverage-vr-56795
01/07/2019, 8:04 PM./pants query 'changed(::)
is my answer to this problemaverage-vr-56795
01/07/2019, 8:05 PMwitty-crayon-22786
01/07/2019, 8:05 PMwitty-crayon-22786
01/07/2019, 8:05 PMaloof-angle-91616
01/07/2019, 8:06 PMwitty-crayon-22786
01/07/2019, 8:07 PMaloof-angle-91616
01/07/2019, 8:07 PM./pants query ... | ./pants --target-spec-file=- whatever
aloof-angle-91616
01/07/2019, 8:08 PMaverage-vr-56795
01/07/2019, 8:09 PMwitty-crayon-22786
01/07/2019, 8:10 PMaverage-vr-56795
01/07/2019, 8:10 PMaloof-angle-91616
01/07/2019, 8:10 PMaloof-angle-91616
01/07/2019, 8:10 PMwitty-crayon-22786
01/07/2019, 8:11 PMaloof-angle-91616
01/07/2019, 8:11 PM./pants query ... | ./pants --target-spec-file=- whatever
is always going to be less efficient and less hygienic (because people will start relying on the ability to dump the target specs into a separate file, maybe pipe it through sed, etc) than doing it in the same command linealoof-angle-91616
01/07/2019, 8:12 PMaverage-vr-56795
01/07/2019, 8:14 PMwitty-crayon-22786
01/07/2019, 8:15 PMwitty-crayon-22786
01/07/2019, 8:16 PM./pants bundle $target
?average-vr-56795
01/07/2019, 8:17 PMwitty-crayon-22786
01/07/2019, 8:17 PMwitty-crayon-22786
01/07/2019, 8:18 PMaverage-vr-56795
01/07/2019, 8:18 PMaverage-vr-56795
01/07/2019, 8:20 PM--per-spec-goal-mismatch-behavior={ignore,warn,error}
witty-crayon-22786
01/07/2019, 8:21 PMaverage-vr-56795
01/07/2019, 8:22 PMwitty-crayon-22786
01/07/2019, 8:23 PMaverage-vr-56795
01/07/2019, 8:24 PMaloof-angle-91616
01/07/2019, 8:26 PMaverage-vr-56795
01/07/2019, 8:32 PMaloof-angle-91616
01/07/2019, 8:34 PMjq
just happens to be a relevant example i didn't think of before (in addition to json also being a well-known graph-ish output format) -- i think not being too tied to any existing examples at the start is a good ideahappy-kitchen-89482
01/07/2019, 10:59 PMhappy-kitchen-89482
01/08/2019, 1:49 AM./pants test everything/testable/under/here::
really should work, and in the way users expect.happy-kitchen-89482
01/08/2019, 1:49 AMhappy-kitchen-89482
01/08/2019, 1:50 AM./pants test everything/testable/under/here::
should probably be allowed to be vacuously true.average-vr-56795
01/08/2019, 9:46 AM./pants test tests/some:binary
?enough-analyst-54434
01/08/2019, 3:48 PMaverage-vr-56795
01/08/2019, 3:56 PMenough-analyst-54434
01/08/2019, 4:21 PMhappy-kitchen-89482
01/08/2019, 6:04 PMfoo/bar::
to be “all targets under foo/bar, if any, that are relevant to the requested goals”. And that suggests a simpler scheme: Instead of differentiating modes and interactivity and options, we can always error if path/to/singletarget
produces nothing, and never error if path/to::
produces nothing. And the user can invoke on path/to/singletarget::
if they want to not error in the vacuous case of a single target.happy-kitchen-89482
01/08/2019, 6:04 PMaverage-vr-56795
01/08/2019, 6:05 PMhappy-kitchen-89482
01/08/2019, 6:05 PM::
then you have been trained to understand that this means “only relevant targets, and there may be none”.happy-kitchen-89482
01/08/2019, 6:07 PMpath/to**
or something.witty-crayon-22786
01/08/2019, 6:09 PM./pants $goal ::
case, you'd want a warning if your command did nothing.witty-crayon-22786
01/08/2019, 6:11 PMaverage-vr-56795
01/08/2019, 6:11 PMaverage-vr-56795
01/08/2019, 6:12 PMwitty-crayon-22786
01/08/2019, 6:12 PMwitty-crayon-22786
01/08/2019, 6:13 PMwitty-crayon-22786
01/08/2019, 6:14 PMhappy-kitchen-89482
01/08/2019, 6:28 PM