Skip to content

Conversation

@coline-carle
Copy link
Contributor

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

td  request wow character eu archimonde Sweetlie

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

td  request wow character eu archimonde Sweetlie | jq

This will print me a nice json structure with highlight

or better

request wow guild eu tarren-mill Method -f members | jq ".members[] | .character .name" | head -n

"Buffsplease"
"Thug"
"Gosmeister"
"Xiripstwo"
"Påhmil"

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant