add support for windows
@@ -10,6 +10,7 @@ import (
"log"
"os"
"os/exec"
+ "runtime"
"strings"
"github.com/urfave/cli/v2"
@@ -157,8 +158,12 @@ func GfmrunActionFunc(c *cli.Context) error {
return err
}
+ 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 {
filename := c.Args().Get(0)
