grim/hgkeeper

Missed some of the old package names, this caused the ssh code to reference an uninitialized access package
package main
import (
"os"
"github.com/alecthomas/kong"
log "github.com/sirupsen/logrus"
"keep.imfreedom.org/grim/hgkeeper/globals"
"keep.imfreedom.org/grim/hgkeeper/serve"
"keep.imfreedom.org/grim/hgkeeper/setup"
)
type commands struct {
globals.Globals
Serve serve.Command `kong:"cmd,help='run the ssh server'"`
Setup setup.Command `kong:"cmd,help='inital setup for the server'"`
}
func init() {
log.SetOutput(os.Stdout)
log.SetLevel(log.DebugLevel)
fmter := &log.TextFormatter{
FullTimestamp: true,
}
switch os.Getenv("TERM") {
case "win":
fallthrough
case "dumb":
fmter.DisableColors = true
}
log.SetFormatter(fmter)
}
func main() {
cmd := commands{}
ctx := kong.Parse(&cmd)
err := ctx.Run(&cmd.Globals)
ctx.FatalIfErrorf(err)
}