Generate action in @command macro.