blob: c8376490ce7967954f2e971578c0d74dbd8726c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package cli
import (
"tsne.dev/hopper/internal/log"
)
// logAction prints a per-action line.
// In dry-run mode the line is prefixed with "[dryrun] ".
func logAction(format string, args ...any) {
if dryRun {
format = "[dryrun] " + format
}
log.Print(format, args...)
}
// logSummary prints the final summary line.
func logSummary(format string, args ...any) {
if dryRun {
format += "\n\nNote: This was a dry run. Nothing on the zone was modified."
}
log.PrintImportant(format, args...)
}
|