common

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShortName       = "cloud-provider-zero"
	DomainName      = "cpz.ekristen.dev"
	OrgID           = "ekristen.dev"
	InstanceIDLabel = "cpz.ekristen.dev/instance-id"
	ProviderLabel   = "cpz.ekristen.dev/provider"
)

Variables

View Source
var BRANCH = "dev"

BRANCH of the Version

View Source
var COMMIT = "dirty"
View Source
var NAME = "cloud-provider-zero"

NAME of the App

View Source
var SUMMARY = "v1.0.0"

SUMMARY of the Version

View Source
var VERSION = "1.0.0"

VERSION of Release

Functions

func Before

func Before(c *cli.Context) error

func Flags

func Flags() []cli.Flag

func GetCommands

func GetCommands() []*cli.Command

GetCommands -- retrieves all commands assigned to the main group

func GetSubcommands

func GetSubcommands(group string) []*cli.Command

GetSubcommands retrieves all commands assigned to a group

func RegisterCommand

func RegisterCommand(command *cli.Command)

RegisterCommand -- allows you to register a command under the main group

func RegisterSubcommand

func RegisterSubcommand(group string, command *cli.Command)

RegisterSubcommand allows you to register a command under a group

Types

type AppVersionInfo

type AppVersionInfo struct {
	Name    string
	Version string
	Branch  string
	Summary string
	Commit  string
}

AppVersionInfo --

var AppVersion AppVersionInfo

AppVersion --

Jump to

Keyboard shortcuts

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