diff options
author | bnewbold <bnewbold@robocracy.org> | 2012-04-23 12:14:39 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2012-04-23 12:14:39 -0400 |
commit | eb04c544afee65ca91cb07dbf62f670401a7f244 (patch) | |
tree | 99a299dadc12cadbdcf5c0110b392b25081ced73 /bommom.go | |
parent | 7b6696714142de8deeb5ef4f144ac3ecf8116e3e (diff) | |
download | bommom-eb04c544afee65ca91cb07dbf62f670401a7f244.tar.gz bommom-eb04c544afee65ca91cb07dbf62f670401a7f244.zip |
basic view-only http interface
Diffstat (limited to 'bommom.go')
-rw-r--r-- | bommom.go | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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) |