.mill-aliases_mill0.10_2.13.0.5.0.source-code.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mill-aliases_mill0.10_2.13 Show documentation
Show all versions of mill-aliases_mill0.10_2.13 Show documentation
A Mill plugin to allow the creation of aliases to common-use tasks.
The newest version!
// Define packageless commands for easy access
import com.carlosedp.aliases.Discover._
import com.carlosedp.aliases._
import mainargs.arg
import mill._
import mill.define.ExternalModule
import mill.eval.Evaluator
object Alias extends ExternalModule {
def run(ev: Evaluator, @arg(positional = true) alias: String) = T.command {
AliasesModule.run(ev, alias)
}
def list(ev: Evaluator) = T.command(AliasesModule.list(ev))
def help() = T.command(AliasesModule.help())
lazy val millDiscover: mill.define.Discover[this.type] =
mill.define.Discover[this.type]
}