From 98467dec72f0a894b7a2fef319d73d3320d94d0f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 02:20:06 -0500 Subject: using new config package --- forgeConfig.config.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 forgeConfig.config.go (limited to 'forgeConfig.config.go') 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 +} -- cgit v1.2.3