add version
This commit is contained in:
parent
e6adae8150
commit
82f90889df
|
@ -74,6 +74,12 @@ func (ph *processHandler) ProcessLine(line string, indentLevel int, headerStack
|
|||
}
|
||||
|
||||
func main() {
|
||||
if len(os.Args) > 1 {
|
||||
fmt.Println(os.Args)
|
||||
fmt.Println("Markdown Bullet Journal version: " + process.Version)
|
||||
return
|
||||
}
|
||||
|
||||
ph := new(processHandler)
|
||||
files := process.GetFiles()
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import (
|
|||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
type header struct {
|
||||
|
@ -84,6 +85,11 @@ func (ph *processHandler) ProcessLine(line string, indentLevel int, headerStack
|
|||
}
|
||||
|
||||
func main() {
|
||||
if len(os.Args) > 1 {
|
||||
fmt.Println("Markdown Bullet Journal version: " + process.Version)
|
||||
return
|
||||
}
|
||||
|
||||
ph := new(processHandler)
|
||||
|
||||
if runtime.GOOS == "windows" {
|
||||
|
|
|
@ -10,6 +10,10 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
const (
|
||||
Version = "1.1"
|
||||
)
|
||||
|
||||
var (
|
||||
todoTaskExp = regexp.MustCompile("^\\[([ \\.xX]*)\\]")
|
||||
startSpaces = regexp.MustCompile("^[\t ]*")
|
||||
|
|
Loading…
Reference in New Issue