summaryrefslogtreecommitdiff
path: root/clientmain.go
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2023-07-29 12:26:23 -0700
committerMike Crute <mike@crute.us>2023-07-29 12:26:23 -0700
commit6d867608837f879be2eb934d034f49359f973c84 (patch)
tree5c35ec4d145d95e5a8b52b4fd778a9c906827e31 /clientmain.go
parent4e995f9e6c3adc43a361b6fa9b976d25378f1594 (diff)
downloadwebsocket_proxy-6d867608837f879be2eb934d034f49359f973c84.tar.bz2
websocket_proxy-6d867608837f879be2eb934d034f49359f973c84.tar.xz
websocket_proxy-6d867608837f879be2eb934d034f49359f973c84.zip
Allow building standalone client
Diffstat (limited to 'clientmain.go')
-rw-r--r--clientmain.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/clientmain.go b/clientmain.go
new file mode 100644
index 0000000..d75b8bc
--- /dev/null
+++ b/clientmain.go
@@ -0,0 +1,21 @@
1//go:build clientonly
2
3package main
4
5import (
6 "log"
7
8 "code.crute.us/mcrute/ssh-proxy/cmd/client"
9
10 // Import backup data. By default zoneinfo is installed in the docker image
11 // if something breaks this will still result in us having correct TZ info.
12 _ "time/tzdata"
13)
14
15func main() {
16 cmd := client.NewClientCommand()
17
18 if err := cmd.Execute(); err != nil {
19 log.Fatalf("Error running root command: %s", err)
20 }
21}