mirror of https://github.com/mickael-menu/zk
Fix --version output
parent
b82f1f547c
commit
be8b2d6289
@ -1,11 +0,0 @@
|
||||
[note]
|
||||
filename = "{{slug title}}"
|
||||
template = "default.md"
|
||||
|
||||
[tool]
|
||||
editor = "vim"
|
||||
|
||||
[alias]
|
||||
neuron = 'neuron gen $@'
|
||||
wc = "zk list --format '{{word-count}}\t{{title}}' --sort word-count -x log $@"
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:41e8b104003fba2e5076276d9b4929912391bbd163edd97d6598f654039c82e8
|
||||
size 331776
|
@ -1,3 +0,0 @@
|
||||
# {{title}}
|
||||
|
||||
{{content}}
|
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=`git describe --tags 2> /dev/null`
|
||||
VERSION=`git describe --tags --match v[0-9]* 2> /dev/null`
|
||||
BUILD=`git rev-parse --short HEAD`
|
||||
|
||||
CGO_ENABLED=1 go $1 -tags "fts5 icu" -ldflags "-X=main.Version=$VERSION -X=main.Build=$BUILD" ${@:2}
|
||||
|
Loading…
Reference in New Issue