summaryrefslogtreecommitdiff
path: root/forgeConfig.config.go
diff options
context:
space:
mode:
Diffstat (limited to 'forgeConfig.config.go')
-rw-r--r--forgeConfig.config.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/forgeConfig.config.go b/forgeConfig.config.go
new file mode 100644
index 0000000..6102d03
--- /dev/null
+++ b/forgeConfig.config.go
@@ -0,0 +1,25 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+package forgepb
+
+import (
+ "go.wit.com/lib/config"
+)
+
+// functions to import and export the protobuf
+// data to and from config files
+
+// write to ~/.config/forge/
+func (cfg *ForgeConfigs) ConfigSave() error {
+ var header string
+ header += "\n"
+ header += "# this file is intended to be used to customize settings on what\n"
+ header += "# git repos you have write access to. That is, where you can run 'git push'\n"
+ header += "\n"
+ return config.ConfigSaveWithHeader(cfg, header)
+}
+
+// load the ~/.config/forge/ files
+func (c *ForgeConfigs) ConfigLoad(fullpath string) error {
+ return nil
+}