Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct { Version func() `short:"v" long:"version" description:"Print the version of Boooklit and exit."` In string `long:"in" short:"i" required:"true" description:"Input .lit file to load."` Out string `long:"out" short:"o" description:"Directory into which sections will be rendered."` SectionTag string `long:"section-tag" description:"Section tag to render."` SectionPath string `long:"section-path" description:"Section path to load and render with --in as its parent."` SaveSearchIndex bool `long:"save-search-index" description:"Save a search index JSON file in the destination."` ServerPort int `long:"serve" short:"s" description:"Start an HTTP server on the given port."` Plugins []string `long:"plugin" short:"p" description:"Package to import, providing a plugin."` Debug bool `long:"debug" short:"d" description:"Log at debug level."` AllowBrokenReferences bool `long:"allow-broken-references" description:"Replace broken references with a bogus tag."` HTMLEngine struct { Templates string `long:"templates" description:"Directory containing .tmpl files to load."` } `group:"HTML Rendering Engine" namespace:"html"` TextEngine struct { FileExtension string `long:"file-extension" description:"File extension to use for generated files."` Templates string `long:"templates" description:"Directory containing .tmpl files to load."` } `group:"Text Rendering Engine" namespace:"text"` }
Click to show internal directories.
Click to hide internal directories.