diff --git a/src/jgo/jgo.py b/src/jgo/jgo.py index bd2b328..53f9b3f 100644 --- a/src/jgo/jgo.py +++ b/src/jgo/jgo.py @@ -271,7 +271,7 @@ def run_and_combine_outputs(command, *args): def find_endpoint(argv, shortcuts={}): # endpoint is first positional argument - pattern = re.compile("(.*https?://.*|[a-zA-Z]:\\.*)") + pattern = re.compile("(.*(https?|grpc)://.*|[a-zA-Z]:\\.*)") indices = [] for index, arg in enumerate(argv): if arg in shortcuts or (Endpoint.is_endpoint(arg) and not pattern.match(arg)):