Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
WIP - Test out using swagger client for cli #1708
Was thinking about using our swagger files to generate the client needed for a CLI tool as an easy way to get a full-featured tool out of the box. Found this documentation: https://goswagger.io/generate/client.html and started on the example.
There is no pivotal story associated with this, I just had some time to try it out.
I can't seem to figure out how to authorize my tool and could use some help with it if you've got any spare cycles.
Add any steps or code to run in this section to help others prepare to run your code:
./bin/gen_server.sh go run cmd/public_cli/main.go
I currently get this output:
Code Review Verification Steps
From my own playing with using swagger from the CLI (via curl), I needed to auth via Login.gov, then take the JWT from my active browser session and plug it into the curl headers. This is obviously really cumbersome.
Maybe there's a way to auth with Login.gov on the CLI in an easier way, or to get an active session some other way.