Add ReplCommand structure to remove redundancy in 'repl' and 'help' functions