Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it useful (from my point of view) #5

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

make it useful (from my point of view) #5

wants to merge 3 commits into from

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