find

package
v0.6.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package find implements the `supermodel find` command — code navigation features inspired by enterprise IDE tools (find usages, call hierarchy, type hierarchy).

Given a symbol name, it searches the graph for all nodes matching that symbol and returns their usages, callers, and definitions — without requiring a running language server or IDE.

This is a vertical slice. It must not import any other slice package. Closes #10 (Steal BigIron Features).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *config.Config, dir, symbol string, opts Options) error

Run finds all graph nodes matching symbol and prints them.

Types

type Match

type Match struct {
	ID        string   `json:"id"`
	Kind      string   `json:"kind"`
	Name      string   `json:"name"`
	File      string   `json:"file"`
	Callers   []string `json:"callers,omitempty"`
	Callees   []string `json:"callees,omitempty"`
	DefinedIn string   `json:"defined_in,omitempty"`
}

Match is a node in the graph that matches the query.

type Options

type Options struct {
	Force  bool
	Output string // "human" | "json"
	Kind   string // filter by node label: Function, File, Class, …
}

Options configures the find command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL