Skip to content

Commit dcaab87

Browse files
committed
Print upload command line in verbose mode
1 parent ed55156 commit dcaab87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

commands/upload/upload.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,9 @@ func Upload(ctx context.Context, req *rpc.UploadReq, outStream io.Writer, errStr
222222
// Build recipe for upload
223223
recipe := uploadProperties.Get("upload.pattern")
224224
cmdLine := uploadProperties.ExpandPropsInString(recipe)
225+
if req.GetVerbose() {
226+
outStream.Write([]byte(fmt.Sprintln(cmdLine)))
227+
}
225228
cmdArgs, err := properties.SplitQuotedString(cmdLine, `"'`, false)
226229
if err != nil {
227230
return nil, fmt.Errorf("invalid recipe '%s': %s", recipe, err)

0 commit comments

Comments
 (0)