Define a plugin compiler.

This commit is contained in:
jregan
2019-04-07 11:16:50 -07:00
committed by Jeffrey Regan
parent 1623f1e4c0
commit 175c754f61
9 changed files with 259 additions and 107 deletions

View File

@@ -34,12 +34,12 @@ func ConfigRoot() string {
dir := os.Getenv(XDG_CONFIG_HOME)
if len(dir) == 0 {
dir = filepath.Join(
homeDir(), defaultConfigSubdir)
HomeDir(), defaultConfigSubdir)
}
return filepath.Join(dir, PgmName)
return filepath.Join(dir, ProgramName)
}
func homeDir() string {
func HomeDir() string {
home := os.Getenv(homeEnv())
if len(home) > 0 {
return home