src/Pure/Tools/phabricator.scala
changeset 71103 c073c4e79518
parent 71102 3d228a3a88e0
child 71109 8c1c717a830b
equal deleted inserted replaced
71102:3d228a3a88e0 71103:c073c4e79518
   114 
   114 
   115   Options are:
   115   Options are:
   116     -l           list available Phabricator installations
   116     -l           list available Phabricator installations
   117     -n NAME      Phabricator installation name (default: """ + quote(default_name) + """)
   117     -n NAME      Phabricator installation name (default: """ + quote(default_name) + """)
   118 
   118 
   119   Invoke a command-line tool within the home directory of the named Phabricator
   119   Invoke a command-line tool within the home directory of the named
   120   installation.
   120   Phabricator installation.
   121 """,
   121 """,
   122           "l" -> (_ => list = true),
   122           "l" -> (_ => list = true),
   123           "n:" -> (arg => name = arg))
   123           "n:" -> (arg => name = arg))
   124 
   124 
   125       val more_args = getopts(args)
   125       val more_args = getopts(args)
   127 
   127 
   128       val progress = new Console_Progress
   128       val progress = new Console_Progress
   129 
   129 
   130       if (list) {
   130       if (list) {
   131         for (config <- read_config()) {
   131         for (config <- read_config()) {
   132           progress.echo("phabricator " + quote(config.name) + " in " + config.root.implode)
   132           progress.echo("phabricator " + quote(config.name) + " root " + config.root)
   133         }
   133         }
   134       }
   134       }
   135 
   135 
   136       val config = get_config(name)
   136       val config = get_config(name)
   137 
   137 
   386     -R DIR       repository directory (default: """ + default_repo("NAME") + """)
   386     -R DIR       repository directory (default: """ + default_repo("NAME") + """)
   387     -U           full update of system packages before installation
   387     -U           full update of system packages before installation
   388     -n NAME      Phabricator installation name (default: """ + quote(default_name) + """)
   388     -n NAME      Phabricator installation name (default: """ + quote(default_name) + """)
   389     -r DIR       installation root directory (default: """ + default_root("NAME") + """)
   389     -r DIR       installation root directory (default: """ + default_root("NAME") + """)
   390 
   390 
   391   Install Phabricator as Ubuntu LAMP application (Linux, Apache, MySQL, PHP).
   391   Install Phabricator as LAMP application (Linux, Apache, MySQL, PHP).
   392 
       
   393   Slogan: "Discuss. Plan. Code. Review. Test.
       
   394   Every application your project needs, all in one tool."
       
   395 
   392 
   396   The installation name (default: """ + quote(default_name) + """) is mapped to a regular
   393   The installation name (default: """ + quote(default_name) + """) is mapped to a regular
   397   Unix user; this is relevant for public SSH access.
   394   Unix user; this is relevant for public SSH access.
   398 """,
   395 """,
   399           "R:" -> (arg => repo = arg),
   396           "R:" -> (arg => repo = arg),
   491         Getopts("""
   488         Getopts("""
   492 Usage: isabelle phabricator_setup_mail [OPTIONS]
   489 Usage: isabelle phabricator_setup_mail [OPTIONS]
   493 
   490 
   494   Options are:
   491   Options are:
   495     -T USER      send test mail to Phabricator user
   492     -T USER      send test mail to Phabricator user
   496     -f FILE      config file (default: """ + default_mailers + """ within installation root)
   493     -f FILE      config file (default: """ + default_mailers + """ within Phabricator root)
   497     -n NAME      Phabricator installation name (default: """ + quote(default_name) + """)
   494     -n NAME      Phabricator installation name (default: """ + quote(default_name) + """)
   498 
   495 
   499   Provide mail configuration for existing Phabricator installation.
   496   Provide mail configuration for existing Phabricator installation.
   500 """,
   497 """,
   501           "T:" -> (arg => test_user = arg),
   498           "T:" -> (arg => test_user = arg),