Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OutputTemplate = `{{- .Comic }} {{ .FmtID "%03d" -}}{{ with .Year }} ({{ . }}){{ end -}}{{ with .Title }} - {{ . }}){{ end -}}.cbz`
)
Functions ¶
Types ¶
type Collection ¶ added in v0.2.4
type Collection struct { OutDir *string Overwrite bool Delete bool Config cfg.Config Sections []Section Title string Year int Bar *mpb.Bar }
func (*Collection) Collect ¶ added in v0.2.4
func (t *Collection) Collect(filemap map[int][]string) error
Collect takes in a map of files and archives them according to the Config and the OutputTemplate.
func (*Collection) ReadConfigBytes ¶ added in v0.2.4
func (t *Collection) ReadConfigBytes(config []byte) error
ReadConfigBytes reads a Config from the given byte slice.
func (*Collection) ReadConfigFile ¶ added in v0.2.4
func (t *Collection) ReadConfigFile(file *os.File) error
ReadConfigFile reads a Config from the given file.
Click to show internal directories.
Click to hide internal directories.