From eb04c544afee65ca91cb07dbf62f670401a7f244 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 23 Apr 2012 12:14:39 -0400 Subject: basic view-only http interface --- bommom.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bommom.go') diff --git a/bommom.go b/bommom.go index 8b72ad0..8fca701 100644 --- a/bommom.go +++ b/bommom.go @@ -82,6 +82,11 @@ func openBomStore() { } } +func openAuthStore() { + // defaults to dummy auth system + auth = DummyAuth(true) +} + func dumpOut(fname string, bm *BomMeta, b *Bom) { var outFile io.Writer if fname == "" { @@ -202,10 +207,8 @@ func dumpCmd() { } openBomStore() + openAuthStore() - if auth == nil { - auth = DummyAuth(true) - } bm, b, err := bomstore.GetHead(ShortName(userStr), ShortName(nameStr)) if err != nil { log.Fatal(err) -- cgit v1.2.3