Framework: Added 'del_config' method to delete a config entry

This commit is contained in:
Paul Beckingham
2015-10-28 14:09:44 -04:00
parent aabd179ffc
commit 18c19ab9ed

View File

@@ -137,6 +137,12 @@ class Task(object):
cmd = (self.taskw, "config", "--", var, value)
return run_cmd_wait(cmd, env=self.env, input="y\n")
def del_config(self, var):
"""Remove `var` from taskd config
"""
cmd = (self.taskw, "config", var)
return run_cmd_wait(cmd, env=self.env, input="y\n")
@property
def taskrc_content(self):
"""