bilbilak / treegen

ASCII Tree to Directory and File Structure Generator
GNU General Public License v3.0
53 stars 4 forks source link

funcs return errors now to be handled in main #3

Open lapubell opened 3 months ago

lapubell commented 3 months ago

Totally a matter of opinion here, but handing errors back from various functions will make it easier to read main and figure out where the issues could arise. I also have the error messages pushed to stdError instead of stdOut, and all os.Exit calls are now in main, so that if we ever decide to handle these errors in a single way, it'd be a much smaller refactor.

Cool project!