a6fda5d1ee
Default command delegation: `nib "..."` routes to `nib add`. Capture bar parses grammar, creates entities. `nib ls` lists with date grouping, tag filter, 48h default window. Display glyphs for all entity types.
14 lines
192 B
Go
14 lines
192 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/lerko/nib/internal/db"
|
|
)
|
|
|
|
func openStore() (*db.Store, error) {
|
|
path, err := db.DefaultPath()
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return db.Open(path)
|
|
}
|