Documentation
¶
Overview ¶
Package watcher monitors the prompts directory for file changes and normalizes filenames.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromptManager ¶ added in v0.119.2
type PromptManager interface {
NormalizeFilenames(ctx context.Context, dir string) ([]prompt.Rename, error)
}
PromptManager is the subset of prompt.Manager that the watcher package uses.
type Watcher ¶
Watcher watches the prompts directory and normalizes filenames.
func NewWatcher ¶
func NewWatcher( inProgressDir string, inboxDir string, promptManager PromptManager, ready chan<- struct{}, debounce time.Duration, currentDateTimeGetter libtime.CurrentDateTimeGetter, ) Watcher
NewWatcher creates a new Watcher with the specified debounce duration.
Click to show internal directories.
Click to hide internal directories.