Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ARGS []Flag[any] = []Flag[any]{
{
"port",
"12345",
"specify the port for '--live-preview' to be served on",
"live-preview",
},
}
View Source
var OPTIONS []Flag[bool] = []Flag[bool]{ { "help", false, "prints the help page, exists", "", }, { "config", false, "uses fleck.json as the source for fleck's command line interface", "", }, { "escape-html", false, "escapes html elements found in the markdown source in the output html", "", }, { "watch", false, "watches for changes in the specified page, recompiles the file on change", "", }, { "syntax", false, "enables syntax highlighting for code blocks in the output using prism", "", }, { "math", false, "enables latex math rendering in the output using katex", "", }, { "live-preview", false, "same as watch, serves the compiled html, reloads tab if change occured", "", }, { "debug", false, "enables debug logs", "", }, { "version", false, "prints version and build information, exists", "", }, { "no-prefix", false, "hide the informational comments generated in the output html", "", }, { "no-template", false, "write html output to a file without the default html scaffolding", "", }, { "silent", false, "disables info logs, reduces output significantly", "", }, { "toc", false, "generates a table of contents at the top of the output file, includes headings 1,2,3", "", }, { "toc-full", false, "generates a full toc, includes headings 1,2,3,4,5,6", "toc", }, { "keep-temp", false, "keeps fleck from removing temporary files, used for debug purposes", "preprocessor-enabled", }, { "preprocessor-enabled", false, "enables the preprocessor to replace macros, decreases performance", "", }, { "shell-macro-enabled", false, "enables the dangerous '@shell{command}' macro", "preprocessor-enabled", }, }
Functions ¶
func PrintVersion ¶
func PrintVersion(version, buildAt, buildBy string)
Types ¶
type Arguments ¶
var ARGUMENTS Arguments
func ParseCli ¶
func ParseCli() *Arguments
register program options to the flag pkg, parse them, return arguments struct
func (*Arguments) GetArg ¶
returns the value of an option, if option not found / set returns false, otherwise returns the options value
type FleckConfig ¶
TODO: add support for arguments, such as port
Click to show internal directories.
Click to hide internal directories.