complete add commandPattern