7 releases

Uses new Rust 2024

0.1.16 Jul 21, 2026
0.1.15 Jul 13, 2026

#790 in Text processing

Apache-2.0

215KB
6K SLoC

toge

Command-line client for querying the Toge search daemon.

toge connects to toged over a Unix domain socket, starts the daemon when needed, sends search or maintenance requests, and prints the results in terminal-friendly formats.

Features

  • daemon-backed local file search
  • plain text, CSV, TSV, TXT, and EFU-style output modes
  • optional ANSI highlighting for matches
  • status, save, and reindex commands

CLI

toge [options] <search text>

Search options:
  -r, -regex <search>   Regex search
  -i, -case             Match case
  -w, -ww               Match whole word
  -p, -match-path       Match full path
  -o, -offset <n>       Start from result n
  -n, -max-results <n>  Max results

Info:
  -status               Daemon status
  -save-db              Force daemon to save index
  -reindex              Force daemon to rebuild index
  -h, -help             Show this help
  -v, -version          Show version

Running

From the workspace:

cargo run -p toge -- --help
cargo run -p toge -- report

If the daemon socket is missing, toge will try to start toged automatically before querying.

Relationship To Other Crates

  • toged owns indexing and request handling
  • toge-core provides shared parsing, IPC, and rendering helpers

For the overall project overview, see the repository root README.md.

Dependencies

~1.7–2.9MB
~49K SLoC