()
| 48 | } |
| 49 | |
| 50 | func 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 | } |
nothing calls this directly
no test coverage detected