ULL-ESIT-GRADOII-TFG / ghedsh

:octocat: A command line program following the philosophy of GitHub Education
http://ull-esit-gradoii-tfg.github.io/ghedsh/
GNU Lesser General Public License v3.0
0 stars 1 forks source link

extender open #24

Open crguezl opened 6 years ago

crguezl commented 6 years ago

sobre el comando open:

crguezl> open ULL-ESIT-GRADOII-DSI

Abre la página github del usuario en el navegador (porque es la del contexto actual la que se abre) y no la de la organización como sería deseable

Ayuda de open en actions/help.rb:

  def open(scope)
    case
    when scope==USER
      print "\topen\t\t\tOpen the user's url of github in your web browser.\n"
    when scope==ORGS
      print "\topen\t\t\tOpen the organization's url of github in your web browser.\n"
      print "\t\t\t\tIf you have added the aditional .csv information with, you can open an specific github profile.\n"
      print "\t\t\t\t->\topen [user]\n\n"
      print "\t\t\t\tYou can use a RegExp to open several users.\n"
      print "\t\t\t\t->\topen /RegExp/\n\n"
      print "\t\t\t\tYou can open an specific field if its contains an url.\n"
      print "\t\t\t\t->\topen [user] [fieldname]\n\n"
      print "\t\t\t\tIf you don't want to put the whole field, you can open the url contained with \"/\" parameter.\n"
      print "\t\t\t\t->\topen [user] /[part of the url]/\n\n"
      print "\t\t\t\tYo can also use the RegExp in first parameter too, in order to open several websites.\n"
      print "\t\t\t\t->\topen /RegExp/ /[part of the url]/\n\n"
    when scope==ORGS_REPO
      print "\topen\t\t\tOpen the repository's url of github in your web browser.\n"
    when scope==TEAM
      print "\topen\t\t\tOpen the team's url of github in your web browser.\n"
    when scope==TEAM_REPO
      print "\topen\t\t\tOpen the repository's url of github in your web browser.\n"
    when scope==ASSIG
      print "\topen\t\t\topen the github assignment repositories disposition\n"
    end
  end