now reads names from cellar.json

This commit is contained in:
Nicholas O'Connor 2017-03-12 23:39:03 -07:00
parent e30cddee84
commit 252b2fdfe6
2 changed files with 8 additions and 2 deletions

6
.gitignore vendored
View File

@ -8,3 +8,9 @@ configure
depcomp depcomp
install-sh install-sh
missing missing
stamp-h1
Makefile
*/Makefile
aclocal.m4
autom4te.cache

View File

@ -31,7 +31,7 @@ int main(int argc, char* argv[]) {
sstr << configstream.rdbuf(); sstr << configstream.rdbuf();
config = json::parse(sstr.str()); config = json::parse(sstr.str());
cout << "has a json" << endl; cout << "- " << config["name"];
} }
catch (const exception &exc) { catch (const exception &exc) {
cout << "- bogus cellar.json file" << endl; cout << "- bogus cellar.json file" << endl;