Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(163)

Unified Diff: man/src/common_demo_functions.sh

Issue 1342383002: Add a git-drover. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « man/man1/git-drover.1 ('k') | man/src/git-drover.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: man/src/common_demo_functions.sh
diff --git a/man/src/common_demo_functions.sh b/man/src/common_demo_functions.sh
index 8f85ad1ea05d045776b9b1f9fc242b86791b2024..7501f5a5a23e942e2550176d880cb47e6c51a836 100755
--- a/man/src/common_demo_functions.sh
+++ b/man/src/common_demo_functions.sh
@@ -50,6 +50,11 @@ comment() {
echo "###COMMENT### $@"
}
+# run a command and print its output without printing the command itself
+output() {
+ "$@"
+}
+
# run a silent command
silent() {
if [[ $DEBUG ]]
« no previous file with comments | « man/man1/git-drover.1 ('k') | man/src/git-drover.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698