Refactor command parsing to use TryFrom? #66
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: projectmoon/tenebrous-dicebot#66
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Instead of having one giant file that can convert text into all commands, implement
TryFrom<String>
/TryFrom<&str>
on each command, adjacent to the rest of the code for the command. Command parser code simply keeps the match statement, with atry_from
call.