A dead simple Golang project tool in order to toggle my Page Rules on Cloudflare.
Toggle means either enable or disable a given rule.
go buildgo test -vYou need to pass the 2 following variables to authenticate against the Cloudflare API:
$ export CLOUDFLARE_EMAIL=<youremail> CLOUDFLARE_TOKEN=<yourtoken>
$ ./cf-pr-toggle # list existing rules
$ ./cf-pr-toggle <rule-id> # toggle rule with id <rule-id>