summaryrefslogtreecommitdiff
path: root/intro2-tldr
diff options
context:
space:
mode:
Diffstat (limited to 'intro2-tldr')
-rwxr-xr-xintro2-tldr23
1 files changed, 18 insertions, 5 deletions
diff --git a/intro2-tldr b/intro2-tldr
index ee1f487..6fd2d09 100755
--- a/intro2-tldr
+++ b/intro2-tldr
@@ -15,15 +15,28 @@ function error () { echo "$*" 1>&2; exit 1; }
tmp=/tmp
show=y
+# Keep in sync with *-tour.
+#
function show () # <cmd> ...
{
if [ $show = "y" ]; then
echo
echo "+ $*"
- "${@}"
- else
- "${@}"
fi
+
+ local p=("$1")
+
+ if [ "$1" = b -o "$1" = bpkg -o "$1" = bdep ]; then
+ p+=(--no-progress)
+ fi
+
+ if [ "$1" = tree ]; then
+ p+=(-n) # No color.
+ fi
+
+ shift
+
+ "${p[@]}" "${@}"
}
cd "$tmp"
@@ -39,7 +52,7 @@ git add .
git commit -m "first commit"
cd ..
-show git clone file://$tmp/hello.git
+show git clone --no-progress file://$tmp/hello.git
show tree hello
show cd hello
@@ -64,7 +77,7 @@ show b
sed -i -re 's/#v1.0.0//' repositories.manifest
show bdep fetch
-bdep sync
+bdep sync --no-progress
show bdep status -i
show bdep sync libhello