dnote/pkg/cli/cmd/sync/main_test.go
Sung Won Cho e9f3b080d5
Use XDG base directory (#527)
* Create platform specific directory definitions

* Fix CLI integration test

* Rename dirs to paths and get config path

* Namespace

* Fix initialization of dirs

* Simplify and change description

* Simplify

* Fix build flag

* Bump sqlite version

* Bump xgo
2021-01-03 12:11:22 +11:00

17 lines
275 B
Go

package sync
import (
"github.com/dnote/dnote/pkg/cli/context"
"path/filepath"
)
var testDir = "../../tmp"
var paths context.Paths = context.Paths{
Home: testDir,
Cache: testDir,
Config: testDir,
Data: testDir,
}
var dbPath = filepath.Join(testDir, "test.db")