docs: @Override
      protected void doHandle(CommandContext ctx) throws CommandFormatException {
          BatchManager batchManager = ctx.getBatchManager();
          if(!batchManager.isBatchActive()) {
              throw new CommandFormatException("No active batch.");
          }
          Batch activeBatch = batchManager.getActiveBatch();
          List<BatchedCommand> commands = activeBatch.getCommands();
          if (!commands.isEmpty()) {
              for (int i = 0; i < commands.size(); ++i) {
                  BatchedCommand cmd = commands.get(i);
                  ctx.printLine("#" + (i + 1) + ' ' + cmd.getCommand());
              }
          } else {
              ctx.printLine("The batch is empty.");
          }
      }