pixlet
pixlet copied to clipboard
"encrypt" command will not work with secrets prefixed by "-" character
This issue may be better suited for the Cobra CLI library, but I figured it should be noted here as well 😃
Summary of the issue:
Some OAuth implementations contain client IDs and secrets that begin with a "-" character. When running pixlet encrypt
on a secret that begin with a "-", the character is confused for a flag.
How to reproduce:
Running pixlet encrypt <app_name> -secret_that_starts_with_a_dash
Yields the response:
Error: unknown shorthand flag: 's' in -secret_that_starts_with_a_dash
I was able to get around this by creating a new app which generated a new Client ID, but that may not always be an option.