intellij: add localconfig helper
Adds a little helper tool which merges a watcherTasks template with the local
project config. This restores the functionality lost in D658.
Also cured me of any remaining nostalgic feelings towards XML.
Test Plan:
Deleted all watchers, ran the script, re-opened project,
watchers are back and functional. Local watchers with the same name got
overwritten. Additional watchers were untouched.
X-Origin-Diff: phab/D661
GitOrigin-RevId: 83f7c1506476378145781c816d776fd451aed40c
diff --git a/intellij/localconfig/BUILD.bazel b/intellij/localconfig/BUILD.bazel
new file mode 100644
index 0000000..9125284
--- /dev/null
+++ b/intellij/localconfig/BUILD.bazel
@@ -0,0 +1,15 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+
+go_library(
+ name = "go_default_library",
+ srcs = ["localconfig.go"],
+ importpath = "git.monogon.dev/source/nexantic.git/intellij/localconfig",
+ visibility = ["//visibility:private"],
+ deps = ["//intellij/localconfig/watchers:go_default_library"],
+)
+
+go_binary(
+ name = "localconfig",
+ embed = [":go_default_library"],
+ visibility = ["//visibility:public"],
+)