diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-26 22:49:05 +0800 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-02-27 18:44:53 +0800 |
commit | 3b24ef05f1f4eca750145ff509658029f40ecb2b (patch) | |
tree | f4aedf46639879051dde213f93280aab6ef04002 /stage2/Lib.scala | |
parent | f9ba2e5798fac11acc2991a69b0c7d579ea631d6 (diff) | |
download | cbt-3b24ef05f1f4eca750145ff509658029f40ecb2b.tar.gz cbt-3b24ef05f1f4eca750145ff509658029f40ecb2b.tar.bz2 cbt-3b24ef05f1f4eca750145ff509658029f40ecb2b.zip |
show methods for Build even if no build file exists to help users
realize when they are in the wrong directory
Diffstat (limited to 'stage2/Lib.scala')
-rw-r--r-- | stage2/Lib.scala | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/stage2/Lib.scala b/stage2/Lib.scala index cc48e60..0c103af 100644 --- a/stage2/Lib.scala +++ b/stage2/Lib.scala @@ -140,18 +140,15 @@ final class Lib(val logger: Logger) extends Stage1Lib(logger){ ).flatMap(lib.taskNames).distinct.sorted val thisTasks = lib.taskNames(buildClass) diff baseTasks ( - ( + s"Methods provided by $show\n\n" + ++ ( if( thisTasks.nonEmpty ){ - s"""Methods provided by ${show} - - ${thisTasks.mkString(" ")} - -""" - } else "" - ) ++ s"""Methods provided by CBT (but possibly overwritten) - - ${baseTasks.mkString(" ")}""" - ) ++ "\n" + thisTasks.mkString(" ") ++ "\n\n" + } else "<none>" + ) + ++ s"\n\nMethods provided by CBT (but possibly overwritten)\n\n" + ++ baseTasks.mkString(" ") + "\n" + ) } def callReflective[T <: AnyRef]( obj: T, code: Option[String], context: Context ): ExitCode = { |