From edf6e32fd1fd2660355d4034291d71d677c19b31 Mon Sep 17 00:00:00 2001 From: rockjam <5min4eq.unity@gmail.com> Date: Wed, 10 Jan 2018 01:27:30 +0300 Subject: update readme with pretified REPL examples --- readme.md | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 57 insertions(+), 10 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 46fbae26..58116a5a 100644 --- a/readme.md +++ b/readme.md @@ -153,31 +153,78 @@ res0: build.type = build != core scalalib bridges getClass isInstanceOf |> == MillModule asInstanceOf equals hashCode toString @ build.core -res1: core.type = ammonite.predef.$up.build$core$@5600c124 +res1: core = ammonite.predef.build#core:45 +Children: + .test +Commands: + .console()() + .run(args: String*)() + .runMain(mainClass: String, args: String*)() +Targets: + .allSources() + .artifactId() + .artifactName() + .artifactScalaVersion() + .assembly() + .assemblyClasspath() + .classpath() + .compile() + .compileDepClasspath() + .compileIvyDeps() + .compilerBridge() + .crossFullScalaVersion() + .depClasspath() + .docsJar() + .externalCompileDepClasspath() + .externalCompileDepSources() +... @ core -res2: core.type = ammonite.predef.$up.build$core$@5600c124 +res2: core.type = ammonite.predef.build#core:45 +Children: + .test +Commands: + .console()() + .run(args: String*)() + .runMain(mainClass: String, args: String*)() +Targets: + .allSources() + .artifactId() + .artifactName() + .artifactScalaVersion() + .assembly() + .assemblyClasspath() + .classpath() + .compile() + .compileDepClasspath() + .compileIvyDeps() + .compilerBridge() + .crossFullScalaVersion() + .depClasspath() + .docsJar() + .externalCompileDepClasspath() + .externalCompileDepSources() +... @ core.scalaV scalaVersion @ core.scalaVersion -res3: define.Target[String] = ammonite.predef.^.build.MillModule#scalaVersion@4b7d16 +res3: mill.define.Target[String] = ammonite.predef.build#MillModule#scalaVersion:20 +Inputs: @ core.scalaVersion() -Running core.scalaVersion +[1/1] core.scalaVersion res4: String = "2.12.4" @ core.ivyDeps() Running core.ivyDeps -res5: Seq[scalalib.Dep] = List( - Scala( - Dependency( - Module("com.lihaoyi", "sourcecode", Map()), - "0.1.4", +[1/1] core.ivyDeps +res5: Seq[mill.scalalib.Dep] = List( + Scala(Dependency(Module("com.lihaoyi", "sourcecode", Map()), + "0.1.4", ... @ core.ivyDeps().foreach(println) -Running core.ivyDeps Scala(Dependency(com.lihaoyi:sourcecode,0.1.4,,Set(),Attributes(,),false,true)) Scala(Dependency(com.lihaoyi:pprint,0.5.3,,Set(),Attributes(,),false,true)) Point(Dependency(com.lihaoyi:ammonite,1.0.3,,Set(),Attributes(,),false,true)) -- cgit v1.2.3