This commit is contained in:
fiatjaf
2025-02-04 23:20:35 -03:00
parent 1e353680bc
commit 6c634d8081
2 changed files with 113 additions and 0 deletions

11
main.go
View File

@@ -39,6 +39,7 @@ var app = &cli.Command{
outbox,
wallet,
mcpServer,
curl,
},
Version: version,
Flags: []cli.Flag{
@@ -140,6 +141,16 @@ func main() {
Usage: "prints the version",
}
// a megahack to enable this curl command proxy
if len(os.Args) > 2 && os.Args[1] == "curl" {
if err := realCurl(); err != nil {
stdout(err)
colors.reset()
os.Exit(1)
}
return
}
if err := app.Run(context.Background(), os.Args); err != nil {
stdout(err)
colors.reset()