Update progress bar and more embed

This commit is contained in:
2025-08-31 12:53:48 +07:00
parent 612f091ac8
commit cf9d499e91
17 changed files with 269 additions and 201 deletions

View File

@@ -31,7 +31,7 @@ func MakeHdiffFile(oldPath string, newPath string, changedFiles []string) error
}
bar := progressbar.NewOptions(len(changedFiles),
progressbar.OptionSetDescription("Creating HDIFF files"),
progressbar.OptionSetDescription("📦 Creating HDiff files"),
progressbar.OptionShowCount(),
progressbar.OptionSetWidth(30),
progressbar.OptionSetPredictTime(true),
@@ -54,7 +54,7 @@ func MakeHdiffFile(oldPath string, newPath string, changedFiles []string) error
fmt.Fprintf(os.Stderr, "failed to create dir: %v\n", err)
continue
}
runHdiffz(oldFile, newFile, hdiffPath)
Hdiffz(oldFile, newFile, hdiffPath)
bar.Add(1)
}
})