Created
April 13, 2018 07:25
-
-
Save fuCtor/8cafcefe58dfee31d3a62eacd1f2423c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dockerCommands := Source.fromFile(file).mkString | |
.replace("\\\n", "").split("\n") | |
.withFilter(_.nonEmpty).map((line) => { | |
val cmd :: args = line.stripLineEnd.split(" ").toList | |
Cmd(cmd, args.mkString(" ")) | |
}).toSeq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment