mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 21:24:15 +00:00
fix --force-actions in tests
This commit is contained in:
@@ -76,7 +76,7 @@ Options:
|
|||||||
-D --showdiff Show a diff before overwriting.
|
-D --showdiff Show a diff before overwriting.
|
||||||
-P --show-patch Provide a one-liner to manually patch template.
|
-P --show-patch Provide a one-liner to manually patch template.
|
||||||
-f --force Do not ask user confirmation for anything.
|
-f --force Do not ask user confirmation for anything.
|
||||||
-a --force-action Execute all actions even if no dotfile is installed.
|
-a --force-actions Execute all actions even if no dotfile is installed.
|
||||||
-k --key Treat <path> as a dotfile key.
|
-k --key Treat <path> as a dotfile key.
|
||||||
-V --verbose Be verbose.
|
-V --verbose Be verbose.
|
||||||
-d --dry Dry run.
|
-d --dry Dry run.
|
||||||
@@ -211,7 +211,7 @@ class Options(AttrMonitor):
|
|||||||
# "listfiles" specifics
|
# "listfiles" specifics
|
||||||
self.listfiles_templateonly = self.args['--template']
|
self.listfiles_templateonly = self.args['--template']
|
||||||
# "install" specifics
|
# "install" specifics
|
||||||
self.install_force_action = self.args['--force-action']
|
self.install_force_action = self.args['--force-actions']
|
||||||
self.install_temporary = self.args['--temp']
|
self.install_temporary = self.args['--temp']
|
||||||
self.install_keys = self.args['<key>']
|
self.install_keys = self.args['<key>']
|
||||||
self.install_diff = not self.args['--nodiff']
|
self.install_diff = not self.args['--nodiff']
|
||||||
|
|||||||
@@ -127,6 +127,7 @@ def _fake_args():
|
|||||||
args['--key'] = False
|
args['--key'] = False
|
||||||
args['--ignore'] = []
|
args['--ignore'] = []
|
||||||
args['--show-patch'] = False
|
args['--show-patch'] = False
|
||||||
|
args['--force-actions'] = False
|
||||||
# cmds
|
# cmds
|
||||||
args['list'] = False
|
args['list'] = False
|
||||||
args['listfiles'] = False
|
args['listfiles'] = False
|
||||||
|
|||||||
Reference in New Issue
Block a user