Skip to content

Commit

Permalink
feat: add src patch being copied to progress message of vendored copy…
Browse files Browse the repository at this point in the history
…_file (#3206)

With copy_file#is_directory being a very common code path with exports_directories_only,
more detail in the progress messages makes for a much better DX
  • Loading branch information
gregmagolan authored Jan 9, 2022
1 parent 9622443 commit ddc985c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def copy_cmd(ctx, src, dst):
if dst.is_directory:
cmd_tmpl = "@xcopy \"%s\" \"%s\\\" /V /E /H /Y /Q >NUL"
mnemonic = "CopyDirectory"
progress_message = "Copying directory"
progress_message = "Copying directory %s" % src.path
else:
cmd_tmpl = "@copy /Y \"%s\" \"%s\" >NUL"
mnemonic = "CopyFile"
progress_message = "Copying file"
progress_message = "Copying file %s" % src.path

ctx.actions.write(
output = bat,
Expand Down

0 comments on commit ddc985c

Please sign in to comment.