def GetLastGcloudCmd(cmd):
  """Get the last substring beginning with gcloud.

  Args:
    cmd: str, the full command string user entered

  Returns:
    cmd: str, the last substring beginning with gcloud
  """
  split_point = cmd.rfind('gcloud')
  return cmd[split_point: ]