cli

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CurrentVersion = Version{
	Major:      0,
	Minor:      0,
	PatchLevel: 13,
	Suffix:     "",
}

Functions

func BuildVersionString

func BuildVersionString() string

func NewBuildCmd

func NewBuildCmd(parent *flag.FlagSet) (*buildCmd, error)

func NewDemoCmd

func NewDemoCmd(parent *flag.FlagSet) (*demoCmd, error)

func NewLoadCmd

func NewLoadCmd(parent *flag.FlagSet) (*loadCmd, error)

func NewServeCmd

func NewServeCmd(parent *flag.FlagSet) (*serverCmd, error)

func NewStaticCmd

func NewStaticCmd(parent *flag.FlagSet) (*staticCmd, error)

func NewVersionCmd

func NewVersionCmd(parent *flag.FlagSet) (*versionCmd, error)

Types

type Version

type Version struct {
	Major int

	Minor int

	// Increment this for bug releases
	PatchLevel int

	// HugoVersionSuffix is the suffix used in the Hugo version string.
	// It will be blank for release versions.
	Suffix string
}

Version represents the Hugo build version.

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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