diff options
author | Laurent Le Brun <laurentlb@google.com> | 2015-05-18 15:15:45 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2015-05-18 20:02:05 +0000 |
commit | 65eba19b28ae8fd8ad15fcac46c67460ac929ce0 (patch) | |
tree | 993ce0695e8e6ab706bd35751244dcb636258f63 /site | |
parent | b1983bec912ada50b68c26cb72e34c7eaaf9250f (diff) |
Skylark cookbook: Set progress_message in examples.
--
MOS_MIGRATED_REVID=93889255
Diffstat (limited to 'site')
-rw-r--r-- | site/docs/skylark/cookbook.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/site/docs/skylark/cookbook.md b/site/docs/skylark/cookbook.md index 1ab6bb51cc..14007afe14 100644 --- a/site/docs/skylark/cookbook.md +++ b/site/docs/skylark/cookbook.md @@ -142,6 +142,7 @@ def _impl(ctx): ctx.action( inputs=[input], outputs=[output], + progress_message="Getting size of %s" % input.short_path, command="stat -L -c%%s %s > %s" % (input.path, output.path)) size = rule( @@ -219,6 +220,7 @@ def _impl(ctx): inputs=ctx.files.srcs, outputs=[ctx.outputs.out], arguments=args, + progress_message="Merging into %s" % ctx.outputs.out.short_path, executable=ctx.executable._merge_tool) concat = rule( @@ -304,6 +306,7 @@ def _impl(ctx): inputs=[f], outputs=[ctx.outputs.out], executable=ctx.executable.binary, + progress_message="Executing %s" % ctx.executable.binary.short_path, arguments=[ f.path, ctx.outputs.out.path, # Access the output file using |