@resources.command<EOL><INDENT>@click.option('<STR_LIT>', is_flag=True, default=False,<EOL>help='<STR_LIT>')<EOL>def status(self, pk=None, detail=False, **kwargs):<DEDENT>
<EOL>job = self.last_job_data(pk, **kwargs)<EOL>if detail:<EOL><INDENT>return job<EOL><DEDENT>return {<EOL>'<STR_LIT>': job['<STR_LIT>'],<EOL>'<STR_LIT>': job['<STR_LIT>'],<EOL>'<STR_LIT:status>': job['<STR_LIT:status>'],<EOL>}<EOL>
Print the status of the most recent update.

        =====API DOCS=====
        Print the status of the most recent update.

        :param pk: Primary key of the resource to retrieve status from.
        :type pk: int
        :param detail: Flag that if set, return the full JSON of the job resource rather than a status summary.
        :type detail: bool
        :param `**kwargs`: Keyword arguments used to look up resource object to retrieve status from if ``pk``
                           is not provided.
        :returns: full loaded JSON of the specified unified job if ``detail`` flag is on; trimed JSON containing
                  only "elapsed", "failed" and "status" fields of the unified job if ``detail`` flag is off.
        :rtype: dict
        =====API DOCS=====