feat(cli): add nib add + nib ls commands

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.
This commit is contained in:
2026-05-14 11:17:27 -04:00
parent 51cbf86d77
commit a6fda5d1ee
6 changed files with 312 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
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)
}