convert commands to uppercase in parser

This commit is contained in:
Jeffrey Morgan 2023-07-17 15:34:08 -07:00
parent 2e6c64a8f9
commit 1f45f7bb52

View file

@ -38,7 +38,7 @@ func Parse(reader io.Reader) ([]Command, error) {
} }
command := Command{} command := Command{}
switch fields[0] { switch strings.ToUpper(fields[0]) {
case "FROM": case "FROM":
command.Name = "model" command.Name = "model"
command.Arg = fields[1] command.Arg = fields[1]