Add user storage test
This commit is contained in:
parent
0c5b4bb04e
commit
137cf3224d
6 changed files with 105 additions and 33 deletions
|
@ -6,12 +6,6 @@ import (
|
|||
"github.com/khlieng/dispatch/Godeps/_workspace/src/github.com/mitchellh/go-homedir"
|
||||
)
|
||||
|
||||
var Path directory
|
||||
|
||||
func SetDirectory(dir string) {
|
||||
Path = directory(dir)
|
||||
}
|
||||
|
||||
func DefaultDirectory() string {
|
||||
home, _ := homedir.Dir()
|
||||
return filepath.Join(home, ".dispatch")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue