make it useful (from my point of view) #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I needed a tool for my requests outside, my own librairie and I didn't want to loose too much time on this, since i want a tool to loose less time going to the official dev.battle.net, that may not fit your need and i only modified what I needed right now.
Requests
first I want something quick to type and conform to what most unix tool seems to do.
using flags for choosing entry point for querying an object is fine, the object is the same on us or on eu. when you request for a character, origin / realm name / character name cannot be optional so they have to be verbs not flags.
so the whole command line for asking my own character become
I don't know what's the use for "request" verb but as I have an alias on
td request wow
it doesn't bother me.Output
There's a lot that can be done on this field, beautiful json color highlight, but as I love unix a default to raw body is what I need the most
then I can post process with jq
This will print me a nice json structure with highlight
or better
I don't want to break anything, and this is more a fix for my personal need and a suggestion of what can be done than a pull request.