def get(self, args, config, connection):
        task = Task(args['id'], args['group'], connection=connection)
        if not task.exists():
            print("Error: Task does not exist: {0}".format(args['id']))
            sys.exit(1)

        task.read()
        self.jprint(task)
    def create(self, args, config, connection):
        if args['json'] is not None:
            task = self._read(None, args['json'], args['group'])
        else:
            task = Task(connection=connection)

        task.create(connection=connection)
        print("Created task {}".format(task.id()))
 def delete(self, args, config, connection):
     task = Task(args['id'], args['group'], connection=connection)
     print("Delete task {0}...".format(args['id']))
     task.delete()