Other

desk version

Print the version of the desk binary.

Usage#

Usage

desk version

version takes no arguments or flags.

Output#

Release builds print the version they were built with, such as v0.1.0. Builds made directly with go build print dev.

Terminal

desk version

Output

dev

Setting the Version#

scripts/release.sh sets the version at build time with Go's linker flags:

Terminal

go build -ldflags "-X main.version=v0.1.0" -o desk .