-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add application plugin for distribution
- Loading branch information
Showing
5 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
rootProject.name = 'patchsets' | ||
rootProject.name = 'bunch' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
@file:Suppress("PackageDirectoryMismatch") | ||
@file:JvmName("Bunch") | ||
|
||
package nk.patchsets.git.general | ||
|
||
import nk.patchsets.git.cp.cherryPick | ||
import nk.patchsets.git.restore.restore | ||
|
||
fun main(args: Array<String>) { | ||
if (args.isEmpty()) { | ||
System.err.println(""" | ||
Usage: cp|restore <args> | ||
cp - for commits cherry pick | ||
restore - for restore branch state | ||
Example: | ||
<program> restore C:/Projects/kotlin 173->172->171->as30 | ||
""".trimIndent()) | ||
|
||
return | ||
} | ||
|
||
val command = args[0] | ||
val commandArgs = args.sliceArray(1..args.size) | ||
|
||
when (command) { | ||
"cp" -> cherryPick(commandArgs) | ||
"restore" -> restore(commandArgs) | ||
else -> { | ||
System.err.println("Unknown command: $command") | ||
return | ||
} | ||
} | ||
} |
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
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