The index built google/codesearch over the chat workspace on every daemon start, for the process lifetime, through a child-process helper and a SQLite metadata DB -- and grep consulted it only for searches confined to the workspace root, which the analysed sessions showed was a small fraction of searches. The compute was continuous; the benefit was not. Removes internal/indexing, the workspace-codesearch helper subcommand, the [indexing] config section, and the GrepIndex accelerator seam from the grep tool, which returns to its direct walk. google/codesearch leaves go.mod with it.
20 lines
505 B
Go
20 lines
505 B
Go
// Command archied is the archie orchestrator daemon
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/samcharles93/archie-core/internal/app/archied"
|
|
)
|
|
|
|
func main() {
|
|
args := os.Args[1:]
|
|
// The setup generator is dispatched before the daemon's flags are
|
|
// parsed: it writes a first-run config.toml and must not touch the
|
|
// store, NATS, or the running daemon's configuration.
|
|
if archied.IsSetupArgs(args) {
|
|
os.Exit(archied.RunSetup(args[1:], os.Stdin, os.Stdout, os.Stderr))
|
|
}
|
|
os.Exit(archied.Run())
|
|
}
|