mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-12 15:05:10 -05:00
## 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
19 lines
259 B
Go
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)
|
|
}
|
|
}
|