Commands live at bin/brain/{index,get,stats,eval,watch}.go and
bin/mail/import.go, bin/markdown/import.go, bin/postgres/query.go.
Python remains the Ladybug write worker. index_mail is a deprecation
shim that rebuilds via --with-mail.
24 lines
587 B
Go
Executable File
24 lines
587 B
Go
Executable File
//usr/bin/env go run "$0" "$@"; exit
|
|
// bin/kb/watch.go — deprecated. Use bin/brain/watch.go.
|
|
//
|
|
// Usage:
|
|
//
|
|
// ./bin/kb/watch.go [dir...] # dirs default /corpus
|
|
// KB_WATCH_INTERVAL=15 ./bin/kb/watch.go
|
|
//
|
|
// Shebang trick: first line is a Go `//` comment; the real code lives in the
|
|
// importable package (module path, never a relative import).
|
|
// NOTE: never run `gofmt -w` on this file - it rewrites `//usr/bin/env` to
|
|
// `// usr/...` and breaks the shebang.
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/eSlider/2dph/bin/watch"
|
|
)
|
|
|
|
func main() {
|
|
watch.Run(os.Args[1:])
|
|
}
|