Finish native completion and retire legacy command machinery

This commit is contained in:
2026-11-20 06:32:47 +00:00
parent 7db626781e
commit faa8cb5822
72 changed files with 841 additions and 2966 deletions

View File

@@ -44,5 +44,13 @@ func consoleFields(fields []any) commandkit.Detail {
func withCommandReporting(deps commandDependencies, invocation commandkit.Invocation) commandDependencies {
deps.reporter = nativeConsole{reporter: invocation.Reporter()}
deps.diagnostics = bootstrapInfoWriter{reporter: invocation.Reporter()}
return deps
}
type bootstrapInfoWriter struct{ reporter *commandkit.Reporter }
func (w bootstrapInfoWriter) Write(body []byte) (int, error) {
_ = w.reporter.Info("", func(destination io.Writer) error { _, err := destination.Write(body); return err })
return len(body), nil
}