mirror of https://github.com/hashicorp/packer
parent
82a7f6ef97
commit
38c81cf3e3
@ -0,0 +1,14 @@
|
||||
package packer
|
||||
|
||||
// ConfigFile returns the default path to the configuration file. On
|
||||
// Unix-like systems this is the ".packerconfig" file in the home directory.
|
||||
// On Windows, this is the "packer.config" file in the application data
|
||||
// directory.
|
||||
func ConfigFile() (string, error) {
|
||||
return configFile()
|
||||
}
|
||||
|
||||
// ConfigDir returns the configuration directory for Packer.
|
||||
func ConfigDir() (string, error) {
|
||||
return configDir()
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
// +build darwin freebsd linux netbsd openbsd
|
||||
|
||||
package main
|
||||
package packer
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
@ -1,6 +1,6 @@
|
||||
// +build windows
|
||||
|
||||
package main
|
||||
package packer
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
Loading…
Reference in new issue