constants

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ApplicationName string = "git-nest"

ApplicationName contains the name of the application used in e.g. cli commands

View Source
const ConfigFileName = "nestmodules.toml"

ConfigFileName contains the path string to the project-local git-nest configuration file.

View Source
const ConfigSubDirFileName = ".config/nestmodules.toml"

ConfigSubDirFileName contains the path string to the project-local git-nest configuration file in a .config subdirectory.

View Source
const LockFileContents = `` /* 139-byte string literal not displayed */

LockFileContents contains the contents of the lockfile in case someone opens it.

View Source
const LockFileName = "~git-nest.lock"

LockFileName contains the path string to the project-local lockfile.

Variables

This section is empty.

Functions

func CompilationTimestamp

func CompilationTimestamp() int

CompilationTimestamp returns the binary's compilation time in form of a unix timestamp, which is injected by the build toolchain. -1 if no compilation time is set.

func EphemeralBuild

func EphemeralBuild() bool

EphemeralBuild returns whether the compiled binary was created by `go run` or the git-nest toolchain. The toolchain injects a value at compile time that toggles the binary to be non-ephemeral.

func Ref

func Ref() string

Ref returns the version control location from which the binary was build on. 'unset' in case it was not injected during `go build`, else the injected value.

func Version

func Version() string

Version returns the binary version. '[ephemeral]' if binary is compiled and run with `go run`, '[dev]' if `go build` was run by the git-nest toolchain, or a version string if the version has been injected during `go build`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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