aboutsummaryrefslogtreecommitdiffstats
path: root/bommom.go
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2012-04-23 12:14:39 -0400
committerbnewbold <bnewbold@robocracy.org>2012-04-23 12:14:39 -0400
commiteb04c544afee65ca91cb07dbf62f670401a7f244 (patch)
tree99a299dadc12cadbdcf5c0110b392b25081ced73 /bommom.go
parent7b6696714142de8deeb5ef4f144ac3ecf8116e3e (diff)
downloadbommom-eb04c544afee65ca91cb07dbf62f670401a7f244.zip
bommom-eb04c544afee65ca91cb07dbf62f670401a7f244.tar.gz
basic view-only http interface
Diffstat (limited to 'bommom.go')
-rw-r--r--bommom.go9
1 files changed, 6 insertions, 3 deletions
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)