Documentation
¶
Overview ¶
Package where provides the "where" command, which prints the absolute path of the discovered .np/ directory.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RunInput ¶
type RunInput struct {
// DiscoverFunc locates the database file, returning its absolute path.
// In production this is Factory.DatabasePath (workspace-aware); tests
// provide a stub.
DiscoverFunc func() (string, error)
// JSON enables machine-readable JSON output.
JSON bool
// WriteTo receives the output.
WriteTo io.Writer
}
RunInput holds the parameters for the where command's core logic, decoupled from CLI flag parsing so it can be tested directly. The DiscoverFunc allows tests to inject a stub instead of hitting the real filesystem.
Click to show internal directories.
Click to hide internal directories.