summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/main.go b/main.go
index 1c2db96..25e801e 100644
--- a/main.go
+++ b/main.go
@@ -76,6 +76,17 @@ func main() {
}
}
+ if argv.Apply != "" {
+ pset, err := readPatchFile(argv.Apply)
+ if err != nil {
+ badExit(err)
+ }
+ if err = applyPatches(pset); err == nil {
+ okExit("applied patch ok")
+ }
+ badExit(err)
+ }
+
if argv.Delete != "" {
me.forge.DeleteByGoPath(argv.Delete)
me.forge.SetConfigSave(true)