prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Allow to specify host and port in dev server
  
  
  </issue>
  <code>
  [start of strawberry/cli/__init__.py]
  1 import click
  2 import sys
  3 
  4 import os
  5 from starlette.applications import Starlette
  6 from starlette.responses import HTMLResponse
  7 import importlib
  8 
  9 import uvicorn
  10 
  11 import hupper
  12 
  13 from strawberry.contrib.starlette import GraphQLApp
  14 
  15 
  16 @click.group()
  17 def run():
  18     pass
  19 
  20 
  21 @run.command("server")
  22 @click.argument("module", type=str)
  23 def server(module):
  24     sys.path.append(os.getcwd())
  25 
  26     reloader = hupper.start_reloader("strawberry.cli.run")
  27 
  28     schema_module = importlib.import_module(module)
  29 
  30     reloader.watch_files([schema_module.__file__])
  31 
  32     app = Starlette(debug=True)
  33     app.add_route("/graphql", GraphQLApp(schema_module.schema))
  34     uvicorn.run(app, host="0.0.0.0", port=8000, log_level="error")
  35
  [end of strawberry/cli/__init__.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/strawberry/cli/__init__.py b/strawberry/cli/__init__.py
  --- a/strawberry/cli/__init__.py
  +++ b/strawberry/cli/__init__.py
  @@ -20,10 +20,12 @@
   
   @run.command("server")
   @click.argument("module", type=str)
  -def server(module):
  +@click.option("-h", "--host", default="0.0.0.0", type=str)
  +@click.option("-p", "--port", default=8000, type=int)
  +def server(module, host, port):
       sys.path.append(os.getcwd())
   
  -    reloader = hupper.start_reloader("strawberry.cli.run")
  +    reloader = hupper.start_reloader("strawberry.cli.run", verbose=False)
   
       schema_module = importlib.import_module(module)
   
  @@ -31,4 +33,7 @@
   
       app = Starlette(debug=True)
       app.add_route("/graphql", GraphQLApp(schema_module.schema))
  -    uvicorn.run(app, host="0.0.0.0", port=8000, log_level="error")
  +
  +    print(f"Running strawberry on http://{host}:{port}/graphql 🍓")
  +
  +    uvicorn.run(app, host=host, port=port, log_level="error")
  
verification_info: {"golden_diff": "diff --git a/strawberry/cli/__init__.py b/strawberry/cli/__init__.py\n--- a/strawberry/cli/__init__.py\n+++ b/strawberry/cli/__init__.py\n@@ -20,10 +20,12 @@\n \n @run.command(\"server\")\n @click.argument(\"module\", type=str)\n-def server(module):\n+@click.option(\"-h\", \"--host\", default=\"0.0.0.0\", type=str)\n+@click.option(\"-p\", \"--port\", default=8000, type=int)\n+def server(module, host, port):\n     sys.path.append(os.getcwd())\n \n-    reloader = hupper.start_reloader(\"strawberry.cli.run\")\n+    reloader = hupper.start_reloader(\"strawberry.cli.run\", verbose=False)\n \n     schema_module = importlib.import_module(module)\n \n@@ -31,4 +33,7 @@\n \n     app = Starlette(debug=True)\n     app.add_route(\"/graphql\", GraphQLApp(schema_module.schema))\n-    uvicorn.run(app, host=\"0.0.0.0\", port=8000, log_level=\"error\")\n+\n+    print(f\"Running strawberry on http://{host}:{port}/graphql \ud83c\udf53\")\n+\n+    uvicorn.run(app, host=host, port=port, log_level=\"error\")\n", "issue": "Allow to specify host and port in dev server\n\n", "before_files": [{"content": "import click\nimport sys\n\nimport os\nfrom starlette.applications import Starlette\nfrom starlette.responses import HTMLResponse\nimport importlib\n\nimport uvicorn\n\nimport hupper\n\nfrom strawberry.contrib.starlette import GraphQLApp\n\n\n@click.group()\ndef run():\n    pass\n\n\n@run.command(\"server\")\n@click.argument(\"module\", type=str)\ndef server(module):\n    sys.path.append(os.getcwd())\n\n    reloader = hupper.start_reloader(\"strawberry.cli.run\")\n\n    schema_module = importlib.import_module(module)\n\n    reloader.watch_files([schema_module.__file__])\n\n    app = Starlette(debug=True)\n    app.add_route(\"/graphql\", GraphQLApp(schema_module.schema))\n    uvicorn.run(app, host=\"0.0.0.0\", port=8000, log_level=\"error\")\n", "path": "strawberry/cli/__init__.py"}]}