xylafur / dnd-generator

Tool to help us in our campaign
1 stars 0 forks source link

Parser util functions need to return their values rather than print them out #22

Closed xylafur closed 6 years ago

xylafur commented 6 years ago

I've encountered some issues with the output from a couple of commands in the shell

Who ever calls it (either from the bash cli or via the interactive shell) needs to have their own output function, but there should be a generic function that returns the data that needs to be output by the caller.

xylafur commented 6 years ago

I did this. The ..._util functions in parser_util now return either a string or a list of strings. There is a wrapper function that will handle what it gets based on who called it (cli or shell)