cmd

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 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:      1,
	PatchLevel: 0,
	Suffix:     "-DEV",
}

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 NewServerCmd

func NewServerCmd(parent *flag.FlagSet) (*serverCmd, 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