From 79c9c0747e876c0b97a4fb3fe91fa9825e462722 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 15 Nov 2020 16:25:57 +0100 Subject: Add a dry run mode. --- dotbot/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dotbot/plugin.py') diff --git a/dotbot/plugin.py b/dotbot/plugin.py index 5e2c923..2d12636 100644 --- a/dotbot/plugin.py +++ b/dotbot/plugin.py @@ -18,10 +18,13 @@ class Plugin(object): ''' return directive == self._directive - def handle(self, directive, data): + def handle(self, directive, data, dry_run = False): ''' Executes the directive. Returns true if the Plugin successfully handled the directive. + + When dry_run is True, the plugin will not perform any actions, only + return False when there is nothing to do, True otherwise. ''' raise NotImplementedError -- cgit v1.2.3