From 252b2fdfe6d07d5928a1d65e5c54b250dd3ea9dd Mon Sep 17 00:00:00 2001 From: Nicholas O'Connor Date: Sun, 12 Mar 2017 23:39:03 -0700 Subject: [PATCH] now reads names from cellar.json --- .gitignore | 6 ++++++ src/cellar.cpp | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 099b1d5..c65f1ca 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,9 @@ configure depcomp install-sh missing +stamp-h1 + +Makefile +*/Makefile +aclocal.m4 +autom4te.cache diff --git a/src/cellar.cpp b/src/cellar.cpp index 853959d..6f9965e 100644 --- a/src/cellar.cpp +++ b/src/cellar.cpp @@ -30,8 +30,8 @@ int main(int argc, char* argv[]) { stringstream sstr; sstr << configstream.rdbuf(); config = json::parse(sstr.str()); - - cout << "has a json" << endl; + + cout << "- " << config["name"]; } catch (const exception &exc) { cout << "- bogus cellar.json file" << endl;