forgepb/forgeConfig.config.go

26 lines
640 B
Go

// 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
}