Skip to content

Commit 6b8a1fe

Browse files
committed
Include version in main
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 046d95f commit 6b8a1fe

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: main.go

+8-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,21 @@ import (
1414
"github.com/mdlayher/vsock"
1515
)
1616

17+
var (
18+
Version = "dev"
19+
)
20+
1721
const (
1822
FrameTypeData = 0x01
1923
FrameTypeWindowSize = 0x02
2024
)
2125

2226
func main() {
2327

24-
fmt.Printf(`slicer-ssh-agent - Copyright (c) 2025 Alex Ellis, OpenFaaS Ltd
25-
`)
28+
fmt.Printf(`slicer-ssh-agent (version: %s)
29+
Copyright (c) 2025 Alex Ellis, OpenFaaS Ltd
30+
31+
`, Version)
2632

2733
port := uint32(514)
2834
l, err := vsock.Listen(port, nil)

0 commit comments

Comments
 (0)