cliflags

package
v2.6.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: MPL-2.0 Imports: 1 Imported by: 0

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

View Source
const BaseURLFlagName = "base-url"

BaseURLFlagName is the CLI flag name for setting the site's absolute base URL (required for RSS/Atom feed generation).

View Source
const BlogRootFlagName = "root-path"

BlogRootFlagName is the CLI flag name for setting the blog root path.

View Source
const DisableFeedsFlagName = "disable-feeds"

DisableFeedsFlagName is the CLI flag name for disabling RSS and Atom feed generation.

View Source
const DisableReadingTimeFlagName = "disable-reading-time"

DisableReadingTimeFlagName is the CLI flag name for disabling reading time estimation.

View Source
const DisableTagsFlagName = "disable-tags"

DisableTagsFlagName is the CLI flag name for disabling tag page generation.

View Source
const FeedLimitFlagName = "feed-limit"

FeedLimitFlagName is the CLI flag name for setting the maximum number of posts in each feed.

View Source
const TemplateDirFlagName = "template-dir"

TemplateDirFlagName is the CLI flag name for setting a custom template directory.

Variables

This section is empty.

Functions

func Shared

func Shared() []cli.Flag

Shared returns the CLI flag definitions that apply to both the generate and serve subcommands. They are registered on the top-level goblog command so that urfave/cli v3's default persistence makes them available in both subcommand actions via c.String/Bool/Int.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL