braintree / litmus_paper

Backend health tester for HA Services
MIT License
32 stars 15 forks source link

Allow disabling color output for terminal status (GET "/") with query param #52

Open 2rs2ts opened 2 years ago

2rs2ts commented 2 years ago

Since color codes can mess with tools like awk, a query parameter to disable the colorizing should be added to the API for the root resource. Something like curl http://mylitmushost/?color=false should result in no colorization. This will eliminate the need to strip color sequences out with something like sed.