add prefixes to flarectl
@@ -227,9 +227,10 @@ func zoneCachePurge(c *cli.Context) error {
files = c.StringSlice("files")
tags = c.StringSlice("tags")
hosts = c.StringSlice("hosts")
+ prefixes = c.StringSlice("prefixes")
)
- if len(files) == 0 && len(tags) == 0 && len(hosts) == 0 {
+ if len(files) == 0 && len(tags) == 0 && len(hosts) == 0 && len(prefixes) == 0 {
fmt.Fprintln(os.Stderr, "You must provide at least one of the --files, --tags or --hosts flags")
return nil
}
@@ -239,6 +240,7 @@ func zoneCachePurge(c *cli.Context) error {
Files: c.StringSlice("files"),
Tags: c.StringSlice("tags"),
Hosts: c.StringSlice("hosts"),
+ Prefixes: c.StringSlice("prefixes"),
}
resp, err = api.PurgeCache(context.Background(), zoneID, purgeReq)
