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

Refactor the interface #66

Open
vikstrous opened this issue Sep 20, 2015 · 4 comments
Open

Refactor the interface #66

vikstrous opened this issue Sep 20, 2015 · 4 comments

Comments

@vikstrous
Copy link
Owner

Here's my plan for a new interface:

pirate-get <action> <options>

where <action> can be one of browse, recent, search, top, categories, sorts

and <options> is everything else we already have as options.

One of the options will be -o / --output specifying a directory to output the results. This replaces --save-directory

One more new option will be -O / --output-type which can be browser, transmission, magnet, torrent, or command. If using command -o specifies the PWD and -c / --command specifies the command to execute.

@vikstrous
Copy link
Owner Author

This is also blocked on #44 because I don't want to risk any breakage when making this change.

@rnhmjoj
Copy link
Collaborator

rnhmjoj commented Sep 20, 2015

I like the idea of subcommands. The arguments parsing could be done this way.

@vikstrous
Copy link
Owner Author

Oh, very cool. I didn't know about this.

On September 20, 2015 5:17:05 AM PDT, Michele Guerini Rocco notifications@github.com wrote:

I like the idea of subcommands. The arguments parsing could be done
this
way.


Reply to this email directly or view it on GitHub:
#66 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@ourcontact
Copy link

I am not sure if this is the same enhancement, but I would like to have the ability to use pirate-get non-interactively (for scripting)

add -q = Quiet/Query/Quit , no progress, get result and quit
add -dx and -fx, show description/files for line x
add arbitrary line number not just 0
ex:
pirate-get -q "Moby.Dick (1956)" = Prints list and exits
pirate-get -q -d4 "Moby.Dick (1956)" = Prints description of result 4
pirate-get -q -f4 "Moby.Dick (1956)" = Prints files of result 4
pirate-get -q -4 "Moby.Dick (1956)" = Quietly gets result 4

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

No branches or pull requests

3 participants