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

Feature: Add flag to run one command and exit right away #9

Closed
ratberryjam opened this issue Jan 20, 2016 · 8 comments
Closed

Feature: Add flag to run one command and exit right away #9

ratberryjam opened this issue Jan 20, 2016 · 8 comments

Comments

@ratberryjam
Copy link

It would be nice to have a flag when running itunes-remote to tell it to just perform the specified command and exit, say if you just want to quickly pause or stop playback.

@mischah mischah changed the title Add flag to run one command and exit right away Feature: Add flag to run one command and exit right away Jan 20, 2016
@mischah
Copy link
Owner

mischah commented Jan 20, 2016

@ratberryjam

Just to make sure I get it straight.

You man instead of:

$ itunes-remote 
iTunes: play
Hold on …
✔ Playing ♪♬
iTunes: exit --force
$ 

Something like:

$ itunes-remote 
iTunes: play --exit
Hold on …
✔ Playing ♪♬
$ 

This is definitely a reasonable use case 👌

@ratberryjam
Copy link
Author

Exactly 👍

@al-the-x
Copy link

al-the-x commented Jul 7, 2016

Additionally:

$> itunes-remote play --exit
Hold on …
✔ Playing ♪♬
$>

But I assume that providing --exit to play would support both use cases?

I WILL SUBMIT A PR TODAY FOR THIS.

And immediately alias play='itunes-remote play --exit'...

@jamesratcliffe
Copy link

@al-the-x Ideally it would work for play, stop, pause, next, previous and back

@quentindemetz
Copy link

Would also like to see this :)

@odedpriva
Copy link

would be great !

@mischah
Copy link
Owner

mischah commented Jul 20, 2017

Implemented for the following commands: play, stop, pause, next, previous and back.

Example usage from the interactive mode:

$ itunes
iTunes: start --exit
$

Example usage from outside:

$ itunes stop --exit
iTunes:
✔ Stopped playing ♪♬
$

@mischah
Copy link
Owner

mischah commented Jul 20, 2017

Published with 2.3.0 🎉

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

6 participants