From 7d069b4ac8723be24010ac79c1185a231fa458f2 Mon Sep 17 00:00:00 2001 From: Anish Athalye Date: Fri, 6 Apr 2018 21:59:28 +0530 Subject: [PATCH] Rename 'use_glob' to 'glob' --- README.md | 8 ++++---- plugins/link.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e5a58b2..06d073b 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ Available extended configuration parameters: | `relink` | Removes the old target if it's a symlink (default:false) | | `force` | Force removes the old target, file or folder, and forces a new link (default:false) | | `relative` | Use a relative path when creating the symlink (default:false, absolute links) | -| `use_glob` | Treat a `*` character as a wildcard, and perform link operations on all of those matches (default:false) | +| `glob` | Treat a `*` character as a wildcard, and perform link operations on all of those matches (default:false) | #### Example @@ -213,7 +213,7 @@ the following three config files equivalent: force: true path: zshrc ~/.config/: - use_glob: true + glob: true path: config/* relink: true ``` @@ -227,7 +227,7 @@ the following three config files equivalent: ~/.zshrc: force: true ~/.config/: - use_glob: true + glob: true path: config/* relink: true ``` @@ -245,7 +245,7 @@ the following three config files equivalent: "force": true }, "~/.config/": { - "use_glob": true, + "glob": true, "path": "config/*", "relink": true } diff --git a/plugins/link.py b/plugins/link.py index d0f057e..64d2070 100644 --- a/plugins/link.py +++ b/plugins/link.py @@ -28,14 +28,14 @@ class Link(dotbot.Plugin): force = defaults.get('force', False) relink = defaults.get('relink', False) create = defaults.get('create', False) - use_glob = defaults.get('use_glob', False) + use_glob = defaults.get('glob', False) if isinstance(source, dict): # extended config relative = source.get('relative', relative) force = source.get('force', force) relink = source.get('relink', relink) create = source.get('create', create) - use_glob = source.get('use_glob', use_glob) + use_glob = source.get('glob', use_glob) path = self._default_source(destination, source.get('path')) else: path = self._default_source(destination, source)