|
|
@ -10,6 +10,7 @@ import (
|
|
|
|
"log"
|
|
|
|
"log"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
"os/exec"
|
|
|
|
"os/exec"
|
|
|
|
|
|
|
|
"runtime"
|
|
|
|
"strings"
|
|
|
|
"strings"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
|
"github.com/urfave/cli/v2"
|
|
|
@ -157,7 +158,11 @@ func GfmrunActionFunc(c *cli.Context) error {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return runCmd("gfmrun", "-c", fmt.Sprint(counter), "-s", filename)
|
|
|
|
if runtime.GOOS == "windows" {
|
|
|
|
|
|
|
|
return runCmd("gfmrun.exe", "-c", fmt.Sprint(counter), "-s", filename)
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return runCmd("gfmrun", "-c", fmt.Sprint(counter), "-s", filename)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func TocActionFunc(c *cli.Context) error {
|
|
|
|
func TocActionFunc(c *cli.Context) error {
|
|
|
|