Documentation
¶
Index ¶
Constants ¶
View Source
const InputPostsDirArgName = "input-posts"
InputPostsDirArgName is the CLI argument name for the input posts directory.
View Source
const RawOutputFlagName = "raw"
RawOutputFlagName is the CLI flag name for enabling raw HTML output mode.
Variables ¶
View Source
var GeneratorCommand cli.Command = cli.Command{ Name: "generate", Aliases: []string{"g"}, Usage: "generate a static blog feed from markdown posts", Action: NewGeneratorCommand, UseShortOptionHandling: true, Arguments: []cli.Argument{ &cli.StringArg{ Name: InputPostsDirArgName, UsageText: "directory containing markdown posts", }, }, Flags: []cli.Flag{ &cli.BoolFlag{ Name: RawOutputFlagName, Aliases: []string{"r"}, Usage: "output raw HTML without template wrapper", Value: false, }, }, }
GeneratorCommand is the main entry point for the GoBlog generate CLI tool. This command is used to set up all the flags, usage info and the action to for generate.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.