aboutsummaryrefslogtreecommitdiffstats
path: root/bommom.go
diff options
context:
space:
mode:
Diffstat (limited to 'bommom.go')
-rw-r--r--bommom.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/bommom.go b/bommom.go
index 55071b8..cebff62 100644
--- a/bommom.go
+++ b/bommom.go
@@ -28,6 +28,7 @@ var (
listenPort = flag.Uint("port", 7070, "port to listen on (HTTP serve)")
listenHost = flag.String("host", "", "hostname to listen on (HTTP serve)")
sessionSecret = flag.String("sessionSecret", "12345", "cookie session secret")
+ octoApiKey = flag.String("octopartApiKey", "", "octopart.com API key (for pricing info)")
)
func main() {
@@ -88,6 +89,10 @@ func openAuthStore() {
auth = DummyAuth(true)
}
+func openPricingSource() {
+ pricingSource = NewOctopartClient(*octoApiKey)
+}
+
func dumpOut(fname string, bm *BomMeta, b *Bom) {
var outFile io.Writer
if fname == "" {