add support for windows

main
Ajitem Sahasrabuddhe 5 years ago
parent 9f5fad1989
commit 55924039a1
No known key found for this signature in database
GPG Key ID: 5B0EE10DAA76876C

@ -10,6 +10,7 @@ import (
"log"
"os"
"os/exec"
"runtime"
"strings"
"github.com/urfave/cli/v2"
@ -157,7 +158,11 @@ 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 {

Loading…
Cancel
Save