Skip to content

Commit

Permalink
phing: don't complete -l with files
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Apr 21, 2019
1 parent 82ffbb2 commit a8c4417
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion completions/ant
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ _ant()
return
;;
-logfile|-l)
_filedir
[[ $1 != *phing || $prev != -l ]] && _filedir
return
;;
-propertyfile)
Expand Down
4 changes: 4 additions & 0 deletions test/t/test_ant.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ def test_3(self, completion):
)
def test_4(self, completion):
assert completion == "named-build"

@pytest.mark.complete("ant -l ")
def test_5(self, completion):
assert completion
4 changes: 4 additions & 0 deletions test/t/test_phing.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ class TestPhing:
@pytest.mark.complete("phing -")
def test_1(self, completion):
assert completion

@pytest.mark.complete("phing -l ")
def test_2(self, completion):
assert not completion

0 comments on commit a8c4417

Please sign in to comment.