summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/main.go b/main.go
index 7cc3e90..a9c084d 100644
--- a/main.go
+++ b/main.go
@@ -4,6 +4,7 @@ package main
4 4
5import ( 5import (
6 "embed" 6 "embed"
7 "io/fs"
7 "log" 8 "log"
8 9
9 "code.crute.us/mcrute/ssh-proxy/app" 10 "code.crute.us/mcrute/ssh-proxy/app"
@@ -35,7 +36,12 @@ func main() {
35 } 36 }
36 cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "") 37 cli.AddFlags(rootCmd, &app.Config{}, app.DefaultConfig, "")
37 38
38 web.Register(rootCmd, embeddedTemplates, embeddedClients, appVersion) 39 templates, err := fs.Sub(embeddedTemplates, "templates")
40 if err != nil {
41 log.Fatalf("Error building sub-fs of embeded fs")
42 }
43
44 web.Register(rootCmd, templates, embeddedClients, appVersion)
39 client.Register(rootCmd) 45 client.Register(rootCmd)
40 register.Register(rootCmd) 46 register.Register(rootCmd)
41 47