Localize all command parsing code into trait impls. #74

Manually merged
projectmoon merged 1 commits from command-try-from into master 2021-05-26 07:03:26 +00:00

1 Commits

Author SHA1 Message Date
projectmoon b05129ad9f Localize all command parsing code into trait impls.
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
This cleans up the command parser a lot, as all of the one or two line
functions and associated imports have been removed. Unfortunately it
does make the command files larger, as two trait impls are required:
one for converting to Box<dyn Command>, and one for converting from
&str to the command type.

Fixes #66.
2021-05-25 23:55:50 +00:00