|
|
|
@ -63,10 +63,6 @@ func main() {
|
|
|
|
|
Name: "gfmrun",
|
|
|
|
|
Action: GfmrunActionFunc,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "toc",
|
|
|
|
|
Action: TocActionFunc,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
Name: "check-binary-size",
|
|
|
|
|
Action: checkBinarySizeActionFunc,
|
|
|
|
@ -216,15 +212,6 @@ func GfmrunActionFunc(c *cli.Context) error {
|
|
|
|
|
return runCmd("gfmrun", "-c", fmt.Sprint(counter), "-s", filename)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func TocActionFunc(c *cli.Context) error {
|
|
|
|
|
filename := c.Args().Get(0)
|
|
|
|
|
if filename == "" {
|
|
|
|
|
filename = "README.md"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return runCmd("markdown-toc", "-i", filename)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// checkBinarySizeActionFunc checks the size of an example binary to ensure that we are keeping size down
|
|
|
|
|
// this was originally inspired by https://github.com/urfave/cli/issues/1055, and followed up on as a part
|
|
|
|
|
// of https://github.com/urfave/cli/issues/1057
|
|
|
|
|