cli complete

This commit is contained in:
Bel LaPointe
2019-03-03 12:10:16 -07:00
parent 78d17a2760
commit fdcfe93dba
4 changed files with 57 additions and 13 deletions

View File

@@ -26,6 +26,10 @@ func (op Op) String() string {
return ""
}
func OpFromString(s string) Op {
return fromString(s)
}
func fromString(s string) Op {
for i := 0; i < 20; i++ {
if Op(i).String() == s {