gosuki/profiles/ini-profile.go
Chakib Ben Ziane 1102df001c generic profile commands, modules need to implement ProfileManager
- no need to implement profile management commands for each module
- [todo] profile commands available when ProfileManager interface implemented
2023-01-31 22:21:39 +01:00

14 lines
288 B
Go

package profiles
import "path/filepath"
type INIProfileLoader struct {
// The absolute path to the directory where profiles.ini is located
BasePath string
ProfilesFile string
}
func (pg *INIProfileLoader) GetPath() string {
return filepath.Join(pg.BasePath, pg.ProfilesFile)
}