demo-magic
demo-magic copied to clipboard
Hide secrets
Hello, and thank you for demo-magic
. I've been using it to showcase demos of some APi interactions that I can script with curl
. Is there anyway you know of that I could employ to avoid displaying secrets like passwords or tokens?
As a limited example I'm doing things like this:
TOKEN="Bearer 908y712ugehjkljds"
comment "# Get the frobulator"
pe "curl --silent 'https://127.0.0.1:5000/frobulator' -H 'Authorization: $TOKEN' | jq"
... which results in a very long output as the command interpolates the full bearer token of 1500+ characters