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 AssetsDirFlagName = "assets-dir"
AssetsDirFlagName is the CLI flag name for setting the directory images are served and copied from.
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 DisableRobotsFlagName = "disable-robots"
DisableRobotsFlagName is the CLI flag name for disabling robots.txt generation.
const DisableSitemapFlagName = "disable-sitemap"
DisableSitemapFlagName is the CLI flag name for disabling sitemap.xml generation.
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 RobotsFileFlagName = "robots-file"
RobotsFileFlagName is the CLI flag name for supplying a custom robots.txt whose contents replace GoBlog's default rules.
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.