cli

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func BuildVersionString

func BuildVersionString() string

func NewBuildCmd

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

func NewCaddyCmd added in v0.2.3

func NewCaddyCmd(parent *flag.FlagSet) (*caddyCmd, error)

NewCaddyCmd 创建 Caddy 管理命令

func NewDemoCmd

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

func NewLicenseCmd added in v0.2.3

func NewLicenseCmd(parent *flag.FlagSet) (*licenseCmd, 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 Command added in v0.1.24

type Command interface {
	// Name returns the name of the command
	Name() string
	// Description returns the description of the command
	Description() string
	// Run executes the command
	Run() error
}

Command represents a CLI command

func GetCommands added in v0.1.24

func GetCommands() []Command

GetCommands returns all available commands

type PlanConfig added in v0.2.3

type PlanConfig struct {
	ExpiryDays int
	MaxDevices int
	MaxIPs     int
}

PlanConfig 定义 plan 配置

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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