From 2b1eb77360e048b652320048398d267d095bd3af Mon Sep 17 00:00:00 2001 From: Dave Lasley Date: Fri, 28 Apr 2017 09:34:21 -0700 Subject: [PATCH] [IMP] Support `.yml` extension * The more commonly used YAML extension is `.yml`. Add support for it --- README.rst | 2 +- git_aggregator/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 37fc287..5f45cf1 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ Manage the aggregation of git branches from different remotes to build a consoli Configuration file ================== -Create a ``repos.yaml`` file: +Create a ``repos.yaml`` or ``repos.yml`` file: .. code-block:: yaml diff --git a/git_aggregator/main.py b/git_aggregator/main.py index 845030d..537db1a 100644 --- a/git_aggregator/main.py +++ b/git_aggregator/main.py @@ -64,7 +64,7 @@ def get_parser(): nargs='?', help='Pull the latest repositories from config(s)' ).completer = argcomplete.completers.FilesCompleter( - allowednames=('.yaml', '.json'), directories=False + allowednames=('.yaml', '.yml', '.json'), directories=False ) main_parser.add_argument(