--- a/authorized_keys/command.go Tue Apr 11 21:21:38 2023 -0500
+++ b/authorized_keys/command.go Tue Apr 11 21:24:09 2023 -0500
@@ -4,8 +4,6 @@
- "go.uber.org/zap/zapcore"
"keep.imfreedom.org/grim/hgkeeper/access"
"keep.imfreedom.org/grim/hgkeeper/globals"
@@ -16,14 +14,6 @@
func (c *Command) Run(g *globals.Globals) error {
- // we're generating output for another command so we need to turn off our
- logger, _ := zap.Config{
- Level: zap.NewAtomicLevelAt(zapcore.FatalLevel),
- zap.ReplaceGlobals(logger)
if err := access.Setup(g.ReposPath, g.AdminRepo); err != nil {
--- a/main.go Tue Apr 11 21:21:38 2023 -0500
+++ b/main.go Tue Apr 11 21:24:09 2023 -0500
@@ -26,7 +26,7 @@
Version version.Command `kong:"cmd,help='display the version and exit'"`
levelEncoder := zapcore.CapitalColorLevelEncoder
switch os.Getenv("TERM") {
@@ -59,6 +59,10 @@
+ if ctx.Command() == "serve" { if err := hg.SetExe(cmd.Globals.HgExecutable); err != nil {