diff options
author | ajrnz <richards.aj@gmail.com> | 2018-02-07 04:58:35 +0000 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-02-06 20:58:35 -0800 |
commit | 3eaa2a12bbe6ee4ecf6d8f839b60f2e000c4d1a1 (patch) | |
tree | 8813730f753c9b5d81a5926e9ae72574ac06eaeb /core/src | |
parent | 6408623e593b932829296945c75e1569930775eb (diff) | |
download | mill-3eaa2a12bbe6ee4ecf6d8f839b60f2e000c4d1a1.tar.gz mill-3eaa2a12bbe6ee4ecf6d8f839b60f2e000c4d1a1.tar.bz2 mill-3eaa2a12bbe6ee4ecf6d8f839b60f2e000c4d1a1.zip |
fix introspection of children on console (eg build) (#128)
this used to work but stopped, I guess, after some on segments
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/mill/main/ReplApplyHandler.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/mill/main/ReplApplyHandler.scala b/core/src/mill/main/ReplApplyHandler.scala index 33013e2d..5a84c344 100644 --- a/core/src/mill/main/ReplApplyHandler.scala +++ b/core/src/mill/main/ReplApplyHandler.scala @@ -82,8 +82,8 @@ class ReplApplyHandler(pprinter0: pprint.PPrinter, (if (m.millInternal.reflect[mill.Module].isEmpty) Nil else ctx.applyPrefixColor("\nChildren:").toString +: - m.millInternal.reflect[mill.Module].map("\n ." + _.millOuterCtx.segments.render)) ++ - (evaluator.discover.value.get(m.getClass) match{ + m.millInternal.reflect[mill.Module].map("\n ." + _.millOuterCtx.segment.pathSegments.mkString("."))) ++ + (evaluator.discover.value.get(m.getClass) match{ case None => Nil case Some(commands) => ctx.applyPrefixColor("\nCommands:").toString +: commands.map{c => |