Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gonejack committed Apr 10, 2021
1 parent 6440c91 commit 2b1efb3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 0 additions & 3 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ type TextBundleToEpub struct {
}

func (t *TextBundleToEpub) Run(textBundles []string, output string) (err error) {
if len(textBundles) == 0 {
textBundles, _ = filepath.Glob("*.textbundle")
}
if len(textBundles) == 0 {
return errors.New("no textbundle given")
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ require (
github.com/PuerkitoBio/goquery v1.6.1
github.com/gabriel-vasile/mimetype v1.2.0
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8
github.com/gonejack/go-epub v1.0.4
github.com/gonejack/go-epub v1.0.5
github.com/spf13/cobra v1.1.3
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5y
github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8 h1:nWU6p08f1VgIalT6iZyqXi4o5cZsz4X6qa87nusfcsc=
github.com/gomarkdown/markdown v0.0.0-20210208175418-bda154fe17d8/go.mod h1:aii0r/K0ZnHv7G0KF7xy1v0A7s2Ljrb5byB7MO5p6TU=
github.com/gonejack/go-epub v1.0.4 h1:ei2i0IO9EsH3TZp/Kh4cREX4FcWfKbGdxlhJWY9yEK4=
github.com/gonejack/go-epub v1.0.4/go.mod h1:FTk593gdTZ30JUIJUk53c3AMTh63EYaeNbIQUMzIL0o=
github.com/gonejack/go-epub v1.0.5 h1:Xm1bu/BcDf0iJZT+870a6SHONflEKSIzwNdDGhNb7s0=
github.com/gonejack/go-epub v1.0.5/go.mod h1:FTk593gdTZ30JUIJUk53c3AMTh63EYaeNbIQUMzIL0o=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
Expand Down
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"
"log"
"os"
"path/filepath"

_ "embed"

Expand Down Expand Up @@ -87,6 +88,10 @@ func run(c *cobra.Command, args []string) error {
Verbose: verbose,
}

if len(args) == 0 || args[0] == "*.textbundle" {
args, _ = filepath.Glob("*.textbundle")
}

return exec.Run(args, *output)
}

Expand Down

0 comments on commit 2b1efb3

Please # to comment.