Uploaded image for project: 'Evergreen'
  1. Evergreen
  2. EVG-3690

Add --browse flag to evergreen patch

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v2018.08.01
    • Component/s: app
    • Labels:

      Description

      Some CLI clients for websites (such as [hub](https://github.com/github/hub)) add a --browse flag to certain commands so you can easily open the created object in your browser. The evergreen patch command should also support this since without it users either have to click or use hacky scripts like:

      output=$(evergreen patch --yes --finalize $@)
          ec=$?
       
          echo "${output}"
       
          if [[ $ec != 0 ]]; then echo "Evergreen patch failed." && return $ec; fi
       
          url=$(echo "${output}" | grep "Build" | grep -o -e "https:\/\/.*")
          python -m webbrowser "$url"
      

        Attachments

          Activity

            People

            Assignee:
            mathew.robinson Mathew Robinson (Inactive)
            Reporter:
            mathew.robinson Mathew Robinson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: