Skip to content

Commit

Permalink
Merge pull request #201 from jkowalleck/hotfix/autocomplete_yaml
Browse files Browse the repository at this point in the history
fixed commandline autocompletion for config files
  • Loading branch information
jkowalleck authored Feb 21, 2020
2 parents 13900e0 + 01669e9 commit 0f1927a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

add upcoming unreleased modiications here

## 2.4.1

* Fixed
* commandline autocompletion for config files to properly suggest `*.yaml` & `*.yml` files.

## 2.4.0

* Changes
Expand Down
2 changes: 1 addition & 1 deletion nichtparasoup/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def imagecrawler_completion(*args: Any, **kwargs: Any) -> Set[str]:
return set(get_imagecrawlers().names())


yaml_file_completion = FilesCompleter('yaml', 'yml')
yaml_file_completion = FilesCompleter(('yaml', 'yml'))


def create_parser() -> ArgumentParser: # pragma: no cover
Expand Down

0 comments on commit 0f1927a

Please sign in to comment.