--- a/main.go Thu Apr 18 14:40:37 2019 -0500
+++ b/main.go Thu Apr 18 15:25:12 2019 -0500
@@ -6,13 +6,13 @@
"github.com/alecthomas/kong"
log "github.com/sirupsen/logrus"
+ "bitbucket.org/rw_grim/hgkeeper/serve" "bitbucket.org/rw_grim/hgkeeper/setup"
- "bitbucket.org/rw_grim/hgkeeper/ssh"
ReposPath string `kong:"flag,name='repos-path',default='repos',help='the directory where the repository are stored'"`
- Serve ssh.ServeCommand `kong:"cmd,help='run the ssh server'"`
+ Serve serve.Command `kong:"cmd,help='run the ssh server'"` Setup setup.SetupCommand `kong:"cmd,help='inital setup for the server'"`
--- a/ssh/keys.go Thu Apr 18 14:40:37 2019 -0500
+++ b/ssh/keys.go Thu Apr 18 15:25:12 2019 -0500
@@ -9,7 +9,7 @@
"golang.org/x/crypto/ssh"
-func (s *Server) loadHostKeys(hostKeysPath string) error {
+func (s *Server) SetHostKeysPath(hostKeysPath string) error { files, err := ioutil.ReadDir(hostKeysPath)