Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deprecate vyper-serve #3666

Merged
merged 2 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading