Created
April 10, 2017 03:52
-
-
Save stepango/3dad94c21c65607f2c9b204fa788b180 to your computer and use it in GitHub Desktop.
new feature branch kotlin script
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
fun exec(str: String) = ProcessBuilder(str.split(" ")) | |
.redirectInput(ProcessBuilder.Redirect.PIPE) | |
.redirectOutput(ProcessBuilder.Redirect.PIPE) | |
.redirectError(ProcessBuilder.Redirect.PIPE) | |
.start() | |
.inputStream | |
.reader() | |
.readLines() | |
.forEach(::println) | |
exec("git checkout upstream/develop") | |
exec("git checkout -b feature/${args[0]}") | |
exec("git pull upstream develop") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment