def _delete_confirmed(self): ids = self._get_selected_ids() print('') self._binary_wrapper.delete(ids) console.wait()
def task_add(self): parameters = input("task add [empty for cancel]: ") if parameters == '': return self._binary_wrapper.add(parameters.split(' ')) console.wait()
def task_mod(self): ids = self._get_selected_ids() parameters = input("task {} mod [empty for cancel]: ".format(ids)) if parameters == '': return self._binary_wrapper.mod(ids, parameters.split(' ')) console.wait()
def task_annotate(self): id = self._get_active_id() annotation = input("task {} annotate [empty for cancel]: ".format(id)) if annotation == '': return self._binary_wrapper.annotate(id, annotation.split(' ')) console.wait()
def task_sync(self): print('Sync command...') self._binary_wrapper.sync() console.wait()
def task_reload(self): print('Reloading data...') self._binary_wrapper.invalidate_data() console.wait()
def task_undo(self): self._binary_wrapper.undo() console.wait()
def task_view(self): ids = self._get_selected_ids() self._binary_wrapper.view(ids) console.wait()
def task_done(self): ids = self._get_selected_ids() self._binary_wrapper.done(ids) console.wait()
def task_edit(self): id_ = self._get_active_id() if id_: self._binary_wrapper.edit([id_]) console.wait()