git-seek-1.1.0 is not a library.
Visit the last successful build:
git-seek-1.10.0
git-seek CLI
A command-line tool for querying Git repositories using Trustfall's GraphQL-like syntax.
Installation
From crates.io
From source
Usage
Basic Queries
# Query repository name
# Query all branches
# Query commits with their messages
Input Methods
You can provide queries in three ways:
-
Inline query (using
--queryor-q): -
From file (using
--fileor-f): -
Via stdin (pipe input):
|
Variables
Use variables in your queries with --var:
Output Formats
Control the output format with --format:
raw(default) - Raw debug outputjson- Pretty-printed JSONtable- Human-readable table
# JSON output
# Table output
Examples
Repository Information
Branch Listing with Latest Commits
Recent Commits
Error Handling
The tool provides helpful error messages:
- If no query is provided and stdin is a terminal, it will prompt for input method
- Invalid Trustfall syntax will show parsing errors
- Git repository errors (e.g., not in a Git repo) are clearly reported
Development
# Run tests
# Build in debug mode
# Run with debug output
RUST_LOG=debug
Dependencies
trustfall_git_adapter- The Git adapter libraryclap- Command-line argument parsinggit2- Git repository accessserde_json- JSON serializationcomfy-table- Table formattinganyhow- Error handling
License
BSD-3-Clause