Skip to content

Commit

Permalink
remove vyper-serve
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Nov 11, 2023
1 parent b75f46b commit e4f157a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 132 deletions.
8 changes: 3 additions & 5 deletions vyper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,18 @@
# -*- coding: UTF-8 -*-
import sys

from vyper.cli import vyper_compile, vyper_ir, vyper_serve
from vyper.cli import vyper_compile, vyper_ir

if __name__ == "__main__":
allowed_subcommands = ("--vyper-compile", "--vyper-ir", "--vyper-serve")
allowed_subcommands = ("--vyper-compile", "--vyper-ir")

if len(sys.argv) <= 1 or sys.argv[1] not in allowed_subcommands:
# default (no args, no switch in first arg): run vyper_compile
vyper_compile._parse_cli_args()
else:
# pop switch and forward args to subcommand
subcommand = sys.argv.pop(1)
if subcommand == "--vyper-serve":
vyper_serve._parse_cli_args()
elif subcommand == "--vyper-ir":
if subcommand == "--vyper-ir":
vyper_ir._parse_cli_args()
else:
vyper_compile._parse_cli_args()
127 changes: 0 additions & 127 deletions vyper/cli/vyper_serve.py

This file was deleted.

0 comments on commit e4f157a

Please sign in to comment.