44from gevent .pywsgi import WSGIServer
55
66from pokeapi_ditto import __version__
7- from pokeapi_ditto .commands import analyze , clone , serve , transform
7+ from pokeapi_ditto .commands import analyze , clone , transform
88
99
1010class Ditto (object ):
@@ -25,11 +25,6 @@ def __init__(self):
2525 analyze_args = subparsers .add_parser ("analyze" )
2626 analyze_args .add_argument ("--data-dir" , type = str , default = "./data" )
2727
28- serve_args = subparsers .add_parser ("serve" )
29- serve_args .add_argument ("--port" , type = int , default = 80 )
30- serve_args .add_argument ("--base-url" , type = str , default = "" )
31- serve_args .add_argument ("--root-dir" , type = str , default = "./data" )
32-
3328 args = vars (parser .parse_args (sys .argv [1 :]))
3429 command = args .pop ("command" )
3530 if command is None :
@@ -53,12 +48,6 @@ def transform(args):
5348 def analyze (args ):
5449 analyze .do_analyze (** args )
5550
56- @staticmethod
57- def serve (args ):
58- port = args .pop ("port" )
59- app = serve .create_app (** args )
60- WSGIServer (("" , port ), app ).serve_forever ()
61-
6251
6352def main ():
6453 Ditto ()
0 commit comments