gomeler / LocationGenerator

Simple exercise in Go that generates locations for tabletop RPGs.
0 stars 0 forks source link

Modify locationCmd to accept a size argument #11

Closed gomeler closed 5 years ago

gomeler commented 5 years ago

No sense randomly generating stuff now. I think the entire location generation stack needs a rework, and perhaps have it return the generated map[string]int of buildings.

Also need to create some sort of prettyprint for this output so the CLI experience doesn't blow.

gomeler commented 5 years ago

Added the --type flag with a default value of "random" to retain the existing behavior. Added some rudimentary input validation/sanitization. Should be good enough for now and I think I learned a thing or two.