Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
.Bl -tag
.It build
(Re-)build a site or a file in particular
+.It clean
+Removes the generated site directory
.It serve
Serve generated site over HTTP
.It var
fmt.Printf("\n")
fmt.Printf("Where <command> is:\n")
fmt.Printf("\tbuild\tGenerate site\n")
+ fmt.Printf("\tclean\tRemoves the generated site directory\n")
fmt.Printf("\tserve\tServe %v over HTTP\n", PUBDIR)
fmt.Printf("\tvar\tQuery variable(s) from a markdown file\n")
fmt.Printf("\tversion\tPrint program version and exit\n")
} else {
fmt.Println("ERROR: too many arguments")
}
+ case "clean":
+ fmt.Println("Removing generated site directory")
+ os.RemoveAll(PUBDIR)
case "serve":
servePubDir()
case "var":