Commit 89521ce 1 parent a48557c commit 89521ce Copy full SHA for 89521ce
File tree 3 files changed +16
-9
lines changed
3 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,6 @@ release:
4
4
owner : bketelsen
5
5
name : captainhook
6
6
name_template : ' {{.Tag}}'
7
- brew :
8
- commit_author :
9
- name : captainhook
10
- email : bketelsen@gmail.com
11
- install : bin.install "newgo"
12
7
builds :
13
8
- goos :
14
9
- linux
@@ -34,10 +29,6 @@ archive:
34
29
- README*
35
30
- changelog*
36
31
- CHANGELOG*
37
- fpm :
38
- bindir : /usr/local/bin
39
- snapshot :
40
- name_template : SNAPSHOT-{{.Commit }}
41
32
checksum :
42
33
name_template : ' {{.ProjectName }}_{{.Version }}_checksums.txt'
43
34
Original file line number Diff line number Diff line change @@ -2,8 +2,10 @@ package main
2
2
3
3
import (
4
4
"flag"
5
+ "fmt"
5
6
"log"
6
7
"net/http"
8
+ "time"
7
9
8
10
"github.com/gorilla/mux"
9
11
)
12
14
configdir string
13
15
echo bool
14
16
proxy bool
17
+ version bool
15
18
proxyHeader string
16
19
listenAddr string
17
20
)
@@ -26,6 +29,12 @@ func init() {
26
29
27
30
func main () {
28
31
flag .Parse ()
32
+
33
+ if BuildDate == "" {
34
+ BuildDate = time .Now ().Format ("15:04:05 Jan 2, 2006" )
35
+ }
36
+ fmt .Printf ("captain hook version %s built %v\n " , Version , BuildDate )
37
+
29
38
if configdir == "" {
30
39
log .Fatal ("configdir is required" )
31
40
}
Original file line number Diff line number Diff line change
1
+ package main
2
+
3
+ // Version is the tagged version or "dev"
4
+ var Version = "dev"
5
+
6
+ // BuildDate is the date of the release build or ""
7
+ var BuildDate = ""
You can’t perform that action at this time.
0 commit comments