Skip to content

Commit 2159fea

Browse files
Fix success message formatting issues
- Use t.Vprint with fmt.Sprintf instead of t.Vprintf to fix printf formatting errors - Ensures proper formatting of source, destination, and duration values - Addresses GitHub comment feedback about MISSING values in output Co-Authored-By: Alec Fong <alecsanf@usc.edu>
1 parent a573941 commit 2159fea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/copy/copy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func runSCP(t *terminal.Terminal, sshAlias, localPath, remotePath string, isUplo
216216
}
217217

218218
duration := time.Since(startTime)
219-
t.Vprintf(t.Green("✓ Successfully copied %s → %s (%v)\n"), source, dest, duration.Round(time.Millisecond))
219+
t.Vprint(t.Green(fmt.Sprintf("✓ Successfully copied %s → %s (%v)\n", source, dest, duration.Round(time.Millisecond))))
220220

221221
return nil
222222
}

0 commit comments

Comments
 (0)