Documentation
¶
Overview ¶
Package cliflags defines the CLI flag names and flag definitions that are shared between the generate and serve subcommands. Keeping them here avoids duplication and import cycles: both the root goblog command (which registers the flags on the top-level cli.Command) and the subcommand action packages (which read flag values) can import this package.
Index ¶
Constants ¶
const BaseURLFlagName = "base-url"
BaseURLFlagName is the CLI flag name for setting the site's absolute base URL (required for RSS/Atom feed generation).
const BlogRootFlagName = "root-path"
BlogRootFlagName is the CLI flag name for setting the blog root path.
const DisableFeedsFlagName = "disable-feeds"
DisableFeedsFlagName is the CLI flag name for disabling RSS and Atom feed generation.
const DisableReadingTimeFlagName = "disable-reading-time"
DisableReadingTimeFlagName is the CLI flag name for disabling reading time estimation.
const DisableTagsFlagName = "disable-tags"
DisableTagsFlagName is the CLI flag name for disabling tag page generation.
const FeedLimitFlagName = "feed-limit"
FeedLimitFlagName is the CLI flag name for setting the maximum number of posts in each feed.
const TemplateDirFlagName = "template-dir"
TemplateDirFlagName is the CLI flag name for setting a custom template directory.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.