common

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BRANCH = "main"

BRANCH of the Version

View Source
var COMMIT = "dirty"
View Source
var NAME = "satokens"

NAME of the App

View Source
var SUMMARY = "0.0.0"

SUMMARY of the Version

View Source
var VERSION = "0.0.0"

VERSION of Release

Functions

func GetCommand

func GetCommand(name string) *cli.Command

func GetCommands

func GetCommands() []*cli.Command

GetCommands --

func GetSubcommands

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

func RegisterCommand

func RegisterCommand(command *cli.Command)

RegisterCommand --

func RegisterSubcommand

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

Types

type AppVersionInfo

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

AppVersionInfo --

var AppVersion AppVersionInfo

AppVersion --

type Commander

type Commander interface {
	Execute(c *cli.Context)
}

Commander --

Jump to

Keyboard shortcuts

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