From 59fa0f0835174b7e4c9a7982c0d6aa96bd22eafa Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 31 Jan 2024 20:24:47 +0000 Subject: [PATCH 1/2] Fixed autocomplete execution bug --- Makefile | 8 ++++++-- click_repl/_completer.py | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b563b2f..0b565b7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,11 @@ release: - @python setup.py sdist bdist_wheel upload + @python3 setup.py sdist bdist_wheel upload .PHONY: release +build-dev: + @python3 setup.py sdist bdist_wheel +.PHONY: build-dev + testrepl: - @python bin/testrepl.py repl + @python3 bin/testrepl.py repl .PHONY: testrepl diff --git a/click_repl/_completer.py b/click_repl/_completer.py index 67b8bda..6a01f47 100644 --- a/click_repl/_completer.py +++ b/click_repl/_completer.py @@ -241,6 +241,8 @@ def _get_completion_for_cmd_args( ) break + param_called = False + elif isinstance(param, click.Argument): choices.extend( self._get_completion_from_params( From bdb5cf7e02ba7d8e0e41970c2f071b0c295f923b Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 31 Jan 2024 20:49:27 +0000 Subject: [PATCH 2/2] Reverting makefile changes --- Makefile | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 0b565b7..b563b2f 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,7 @@ release: - @python3 setup.py sdist bdist_wheel upload + @python setup.py sdist bdist_wheel upload .PHONY: release -build-dev: - @python3 setup.py sdist bdist_wheel -.PHONY: build-dev - testrepl: - @python3 bin/testrepl.py repl + @python bin/testrepl.py repl .PHONY: testrepl