mirror of
https://github.com/kovetskiy/mark.git
synced 2025-07-27 18:47:38 +08:00
bump to 7.0
This commit is contained in:
parent
9a7146c7d7
commit
b15f1f8e70
13
main.go
13
main.go
@ -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
|
||||
@ -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
|
||||
}
|
||||
@ -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")
|
||||
}
|
||||
|
@ -1,8 +1,9 @@
|
||||
package mark
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
x
Reference in New Issue
Block a user