mirror of
https://github.com/samuelncui/acp.git
synced 2026-09-20 06:24:15 +00:00
feat: add continue
This commit is contained in:
@@ -31,6 +31,9 @@ type option struct {
|
||||
withProgressBar bool
|
||||
threads int
|
||||
withHash bool
|
||||
|
||||
autoFill bool
|
||||
autoFillSplitDepth int
|
||||
}
|
||||
|
||||
func newOption() *option {
|
||||
@@ -179,3 +182,11 @@ func WithHash(b bool) Option {
|
||||
return o
|
||||
}
|
||||
}
|
||||
|
||||
func WithAutoFill(on bool, depth int) Option {
|
||||
return func(o *option) *option {
|
||||
o.autoFill = on
|
||||
o.autoFillSplitDepth = depth
|
||||
return o
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user