1
0
Fork 0
mirror of synced 2024-11-22 08:15:34 -05:00

Merge remote-tracking branch 'upstream/master' into linkif

This commit is contained in:
Ben Klein 2018-06-26 11:26:04 -04:00
commit 0ab840f691
7 changed files with 22 additions and 2 deletions

View file

@ -1,4 +1,4 @@
from .cli import main
from .plugin import Plugin
__version__ = '1.12.3'
__version__ = '1.12.4'

View file

@ -52,7 +52,7 @@ def main():
log.set_level(Level.DEBUG)
plugin_directories = list(options.plugin_dirs)
if not options.disable_built_in_plugins:
plugin_directories.append(os.path.join(os.path.dirname(__file__), '..', 'plugins'))
from .plugins import Clean, Link, Shell
plugin_paths = []
for directory in plugin_directories:
for plugin_path in glob.glob(os.path.join(directory, '*.py')):

View file

@ -0,0 +1,3 @@
from .clean import Clean
from .link import Link
from .shell import Shell

View file

@ -0,0 +1,17 @@
test_description='can disable built-in plugins'
. '../test-lib.bash'
test_expect_success 'setup' '
echo "apple" > ${DOTFILES}/f
'
test_expect_failure 'run' '
run_dotbot --disable-built-in-plugins <<EOF
- link:
~/.f: f
EOF
'
test_expect_failure 'test' '
test -f ~/.f
'