Files
Fabric/cmd/fabric/main.go
Kayvan Sylvan deb59bdd21 fix: write CLI and streaming errors to stderr
## CHANGES
- Route CLI execution errors to standard error output
- Print Anthropic stream errors to stderr consistently
- Add os import to support stderr error writes
- Preserve help-output suppression and exit behavior
2025-12-13 00:02:44 -08:00

19 lines
259 B
Go

package main
import (
"fmt"
"os"
"github.com/jessevdk/go-flags"
"github.com/danielmiessler/fabric/internal/cli"
)
func main() {
err := cli.Cli(version)
if err != nil && !flags.WroteHelp(err) {
fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(1)
}
}