internal/

directory
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT

Directories

Path Synopsis
Package cli wires the pieces together into the onwrite command.
Package cli wires the pieces together into the onwrite command.
Package config reads the optional .onwrite.json file.
Package config reads the optional .onwrite.json file.
Package detect works out which of the tools in the registry a given project actually uses, and where their binaries live.
Package detect works out which of the tools in the registry a given project actually uses, and where their binaries live.
Package engine applies a project's own formatters to a single file, safely.
Package engine applies a project's own formatters to a single file, safely.
Package hook adapts onwrite to Claude Code's PostToolUse hook.
Package hook adapts onwrite to Claude Code's PostToolUse hook.
Package registry holds the declarative table of formatters and fixers that onwrite knows how to drive.
Package registry holds the declarative table of formatters and fixers that onwrite knows how to drive.
Package runner implements `onwrite run -- <command>`: run something, then format whatever it wrote.
Package runner implements `onwrite run -- <command>`: run something, then format whatever it wrote.
Package scan decides which files onwrite is allowed to look at.
Package scan decides which files onwrite is allowed to look at.
Package testutil builds throwaway projects and fake formatters for tests.
Package testutil builds throwaway projects and fake formatters for tests.
Package watch implements the daemon mode: format every source file as soon as anything finishes writing it.
Package watch implements the daemon mode: format every source file as soon as anything finishes writing it.

Jump to

Keyboard shortcuts

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