From 3c2877dd63698f6ef424538ed91ffa66144bf115 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Wed, 8 Jan 2025 18:05:48 +0100 Subject: just build: add new option -p ... allowing to print the unique artifact built (if any). This allows convenient inspection of the build result of targets that define precisely one artifact. --- test/end-to-end/cli/build-p.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test') diff --git a/test/end-to-end/cli/build-p.sh b/test/end-to-end/cli/build-p.sh index 9a829fe7..0da9179a 100644 --- a/test/end-to-end/cli/build-p.sh +++ b/test/end-to-end/cli/build-p.sh @@ -44,6 +44,9 @@ cat out.json # Requesting foo/bar gives a human-readable description of the tree "${JUST}" build -L '["env", "PATH='"${PATH}"'"]' --local-build-root "${BUILDROOT}" -P foo/bar | grep baz +# ... and so does asking for the unique artifact +"${JUST}" build -L '["env", "PATH='"${PATH}"'"]' --local-build-root "${BUILDROOT}" -p | grep baz + # going deepter into the tree we stil can get human-readable tree descriptions "${JUST}" build -L '["env", "PATH='"${PATH}"'"]' --local-build-root "${BUILDROOT}" -P foo/bar/baz/greeting | grep hello.txt -- cgit v1.2.3