diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-11-05 03:00:04 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-11-05 21:14:58 +0800 |
commit | bc9dc386625021fec517f2dbf0644ccafe1e32c2 (patch) | |
tree | 12db6817470708c7aa274aa231ef35eb79f2123a /main/core/src/mill/util/Ctx.scala | |
parent | 8afe79afe33be68f59f89b8410984e508c3e8d08 (diff) | |
download | mill-bc9dc386625021fec517f2dbf0644ccafe1e32c2.tar.gz mill-bc9dc386625021fec517f2dbf0644ccafe1e32c2.tar.bz2 mill-bc9dc386625021fec517f2dbf0644ccafe1e32c2.zip |
WIP migrating over from `ammonite.ops` to `os` module.
__.compile works, haven't run tests yet
Diffstat (limited to 'main/core/src/mill/util/Ctx.scala')
-rw-r--r-- | main/core/src/mill/util/Ctx.scala | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/main/core/src/mill/util/Ctx.scala b/main/core/src/mill/util/Ctx.scala index 6c8b2afb..bbc243b7 100644 --- a/main/core/src/mill/util/Ctx.scala +++ b/main/core/src/mill/util/Ctx.scala @@ -1,6 +1,5 @@ package mill.util -import ammonite.ops.Path import mill.define.Applicative.ImplicitStub import scala.annotation.compileTimeOnly @@ -12,16 +11,16 @@ object Ctx{ implicit def taskCtx: Ctx = ??? object Dest { - implicit def pathToCtx(path: Path): Dest = new Dest { def dest = path } + implicit def pathToCtx(path: os.Path): Dest = new Dest { def dest = path } } trait Dest{ - def dest: Path + def dest: os.Path } trait Log{ def log: Logger } trait Home{ - def home: Path + def home: os.Path } trait Env{ def env: Map[String, String] @@ -37,9 +36,9 @@ object Ctx{ } class Ctx(val args: IndexedSeq[_], - dest0: () => Path, + dest0: () => os.Path, val log: Logger, - val home: Path, + val home: os.Path, val env : Map[String, String]) extends Ctx.Dest with Ctx.Log |