now reads names from cellar.json
This commit is contained in:
parent
e30cddee84
commit
252b2fdfe6
6
.gitignore
vendored
6
.gitignore
vendored
@ -8,3 +8,9 @@ configure
|
|||||||
depcomp
|
depcomp
|
||||||
install-sh
|
install-sh
|
||||||
missing
|
missing
|
||||||
|
stamp-h1
|
||||||
|
|
||||||
|
Makefile
|
||||||
|
*/Makefile
|
||||||
|
aclocal.m4
|
||||||
|
autom4te.cache
|
||||||
|
@ -30,8 +30,8 @@ int main(int argc, char* argv[]) {
|
|||||||
stringstream sstr;
|
stringstream sstr;
|
||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user