MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / main

Function main

cli/main.go:50–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func main() {
51 cmd := &cli.Command{
52 Name: "imgproxy",
53 Usage: "Fast and secure standalone server for resizing and converting remote images",
54 Action: run,
55 Commands: []*cli.Command{
56 {
57 Name: "version",
58 Usage: "print the version",
59 Action: ver,
60 },
61 {
62 Name: "health",
63 Usage: "perform a healthcheck on a running imgproxy instance",
64 Action: healthcheck,
65 },
66 },
67 }
68
69 if err := cmd.Run(context.Background(), os.Args); err != nil {
70 logger.Fatal(err.Error())
71 }
72}

Callers

nothing calls this directly

Calls 4

FatalFunction · 0.92
RunMethod · 0.80
BackgroundMethod · 0.80
ErrorMethod · 0.65

Tested by

no test coverage detected