Moved defaults out of .nimble file. * Closes #27
h3rald h3rald@h3rald.com
Mon, 21 Sep 2015 22:30:28 +0200
3 files changed,
8 insertions(+),
18 deletions(-)
M
LiteStore_UserGuide.htm
→
LiteStore_UserGuide.htm
@@ -975,7 +975,7 @@ </ul>
</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco – September 20, 2015</p> + <p><span class="copy"></span> Fabio Cevasco – September 21, 2015</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </body>
M
lib/config.nim
→
lib/config.nim
@@ -3,11 +3,15 @@ parsecfg,
streams, strutils -const cfgfile = "litestore.nimble".slurp +const + cfgfile = "litestore.nimble".slurp var - file*, address*, version*, appname*: string - port*: int + file* = "data.db" + address* = "127.0.0.1" + appname* = "LiteStore" + port* = 9500 + version*: string f = newStringStream(cfgfile) if f != nil:@@ -22,14 +26,6 @@ of cfgKeyValuePair:
case e.key: of "version": version = e.value - of "appame": - appname = e.value - of "port": - port = e.value.parseInt - of "address": - address = e.value - of "file": - file = e.value else: discard of cfgError:
M
litestore.nimble
→
litestore.nimble
@@ -6,11 +6,5 @@ description = "Self-contained, lightweight, RESTful document store."
license = "MIT" bin = "litestore" -[Defaults] -appame = "LiteStore" -file = "data.db" -address = "127.0.0.1" -port = 9500 - [Deps] requires: "nimrod >= 0.11.2"