def status(): """Stats for this session and user""" # Get our user and session information from our context (ppid, start_time) = shell_utils.get_session_information() status_view = rest_client.get_status_view(ppid, start_time) if status_view: click.echo(build_status_view(status_view))
def status(): """Stats for this session and user""" # Get our user and session information from our context user_context = shell_utils.build_user_context() status_view = rest_client.get_status_view(user_context) click.echo(build_status_view(status_view))