Documentation
¶
Index ¶
- func BuildIndexCmd(deps IndexDeps) *cobra.Command
- func BuildSearchCmd(deps IndexDeps) *cobra.Command
- func RunIndex(ctx context.Context, out io.Writer, source string, full bool, deps IndexDeps) error
- func RunIndexStatus(ctx context.Context, out io.Writer, deps IndexDeps) error
- func RunSearch(ctx context.Context, out io.Writer, query string, limit int, source string, ...) error
- type IndexDeps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildIndexCmd ¶
BuildIndexCmd creates the "index" command.
func BuildSearchCmd ¶
BuildSearchCmd creates the "search" command.
func RunIndexStatus ¶
RunIndexStatus shows index statistics.
Types ¶
type IndexDeps ¶
type IndexDeps struct {
LoadInstances func(dir string) ([]tracker.Instance, error)
LoadNotionInstances func(dir string) ([]index.NotionInstance, error)
DBPath func() string
NewStore func(dbPath string) (index.Store, error)
}
IndexDeps holds injectable dependencies for index commands.
func DefaultIndexDeps ¶
func DefaultIndexDeps() IndexDeps
DefaultIndexDeps returns production dependencies.
Click to show internal directories.
Click to hide internal directories.