summaryrefslogtreecommitdiff
path: root/forgeConfig.config.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-11 02:20:06 -0500
committerJeff Carr <[email protected]>2025-09-11 02:20:06 -0500
commit98467dec72f0a894b7a2fef319d73d3320d94d0f (patch)
tree2bbd2f2fb9d50b413e716ca7030304f950c65194 /forgeConfig.config.go
parentdbde2f51b8acb4043203b5592531c6715896c800 (diff)
using new config package
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
+}