[patterns] command with enums