cli

package
v0.23.0-beta3.patch5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: BSD-3-Clause Imports: 35 Imported by: ? 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

View Source
const (
	HeadscaleDateTimeFormat = "2006-01-02 15:04:05"
	SocketWritePermissions  = 0o666
)
View Source
const (
	Base10 = 10
)
View Source
const (
	// 90 days.
	DefaultAPIKeyExpiry = "90d"
)
View Source
const (
	DefaultPreAuthKeyExpiry = "1h"
)

Variables

View Source
var Version = "dev"

Functions

func ColourTime

func ColourTime(date time.Time) string

func ErrorOutput

func ErrorOutput(errResult error, override string, outputFormat string)

func Execute

func Execute()

func HasMachineOutputFlag

func HasMachineOutputFlag() bool

func SuccessOutput

func SuccessOutput(result interface{}, override string, outputFormat string)

Types

type Error

type Error string

Error is used to compare errors as per https://dave.cheney.net/2016/04/07/constant-errors

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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