diff options
author | Anish Athalye <me@anishathalye.com> | 2018-04-06 21:59:28 +0530 |
---|---|---|
committer | Anish Athalye <me@anishathalye.com> | 2018-04-13 08:49:02 -0400 |
commit | 7d069b4ac8723be24010ac79c1185a231fa458f2 (patch) | |
tree | 37a857bcafe7dacf592a06d914d91f8f6eb41e87 | |
parent | 7ebb601a10eb7fdcb533d4f4ca837d97d27f484a (diff) |
Rename 'use_glob' to 'glob'
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | plugins/link.py | 4 |
2 files changed, 6 insertions, 6 deletions
@@ -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) |