feat: add wildcard job

This commit is contained in:
崔竞宁
2023-05-07 16:19:11 +08:00
parent 6351045e0f
commit 8502bf37dc
13 changed files with 287 additions and 161 deletions
+1 -2
View File
@@ -63,7 +63,7 @@ func main() {
}()
opts := make([]acp.Option, 0, 8)
opts = append(opts, acp.Source(sources...))
opts = append(opts, acp.WildcardJob(acp.Source(sources...), acp.Target(targetPaths...)))
// if *continueReport != "" {
// f, err := os.Open(*continueReport)
// if err != nil {
@@ -81,7 +81,6 @@ func main() {
// }
// }
opts = append(opts, acp.Target(targetPaths...))
opts = append(opts, acp.WithHash(*reportPath != ""))
opts = append(opts, acp.Overwrite(!*notOverwrite))