Initial grt logic for parsing commands

Change-Id: I732211ced2d02ca1b6f81db3dc9420b0c5d4c2e0