def handle(self, *args, **options): removed, installed = reinstall() if not removed: print("{} tasks installed.".format(installed)) elif not installed: print("{} tasks removed.".format(removed)) else: print("{} tasks removed, {} installed.".format(removed, installed))
def handle_noargs(self, **options): reinstall() print "Installed %s tasks." % len(tasks)
def handle_noargs(self, **options): if options.get('fake'): printtasks() else: reinstall() print "Installed %s tasks." % len(tasks)
def install(): kronos.reinstall()
def handle_noargs(self, **options): reinstall() print("Installed {0} tasks.".format(len(tasks)))