Skip to content

Commit

Permalink
bump to 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kovetskiy committed Jan 18, 2022
1 parent 9a7146c commit b15f1f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
13 changes: 10 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Flags struct {
}

const (
version = "6.7"
version = "7.0"
usage = `mark - a tool for updating Atlassian Confluence pages from markdown.
Docs: https://github.com/kovetskiy/mark
Expand Down Expand Up @@ -178,7 +178,9 @@ func processFile(

switch {
case meta.Space == "" && flags.Space == "":
log.Fatal("space is not set ('Space' header is not set and '--space' option is not set)")
log.Fatal(
"space is not set ('Space' header is not set and '--space' option is not set)",
)
case meta.Space == "" && flags.Space != "":
meta.Space = flags.Space
}
Expand Down Expand Up @@ -313,7 +315,12 @@ func processFile(
target = page
}

attaches, err := mark.ResolveAttachments(api, target, filepath.Dir(file), meta.Attachments)
attaches, err := mark.ResolveAttachments(
api,
target,
filepath.Dir(file),
meta.Attachments,
)
if err != nil {
log.Fatalf(err, "unable to create/update attachments")
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/mark/attachment_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package mark

import (
"github.com/stretchr/testify/assert"
"testing"

"github.com/stretchr/testify/assert"
)

var (
Expand Down

0 comments on commit b15f1f8

Please sign in to comment.