Initialize IM

This commit is contained in:
Milan Nikolic
2023-01-14 10:52:04 +01:00
parent 943cd9bb95
commit 7082e3db90
3 changed files with 6 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ module github.com/gen2brain/cbconvert/cmd/cbconvert
go 1.19
require (
github.com/gen2brain/cbconvert v0.0.0-20230112123620-c24d7b7e18c4
github.com/gen2brain/cbconvert v0.0.0-20230114093920-943cd9bb9530
github.com/schollz/progressbar/v3 v3.10.0
github.com/spf13/pflag v1.0.5
)

View File

@@ -7,8 +7,8 @@ github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1
github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
github.com/fvbommel/sortorder v1.0.2 h1:mV4o8B2hKboCdkJm+a7uX/SIpZob4JzUpc5GGnM45eo=
github.com/fvbommel/sortorder v1.0.2/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui720w+kxuqRs0=
github.com/gen2brain/cbconvert v0.0.0-20230112123620-c24d7b7e18c4 h1:DMAjwfDN0yhxfJjrZLqCjL1CSEvcBUbOGPPEW1WhYXw=
github.com/gen2brain/cbconvert v0.0.0-20230112123620-c24d7b7e18c4/go.mod h1:GO5h+s7160FK66rth/0QS06HgXFwE57jaP3OTX/8Rv0=
github.com/gen2brain/cbconvert v0.0.0-20230114093920-943cd9bb9530 h1:hyHrH4Y+AOVaYgDyrsz549ahu+nuPINWraGry6IebrU=
github.com/gen2brain/cbconvert v0.0.0-20230114093920-943cd9bb9530/go.mod h1:GO5h+s7160FK66rth/0QS06HgXFwE57jaP3OTX/8Rv0=
github.com/gen2brain/go-fitz v1.20.2 h1:4FPJCU/ImQ32oojBsYn/+oTkRORxbAhAA+Yw1Fm97MA=
github.com/gen2brain/go-fitz v1.20.2/go.mod h1:YbQPODTC/UnQ/RK4JyD3zfpDQ19UKiV85nMMT3XpT0s=
github.com/gen2brain/go-unarr v0.1.6 h1:2TtfIQ2dGuCkgEYa+vPE1ydcpkB3CtBbdYMfRSGLdA8=

View File

@@ -37,6 +37,9 @@ func main() {
os.Exit(1)
}
conv.Initialize()
defer conv.Terminate()
files, err := conv.Files(args)
if err != nil {
fmt.Println(err)