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

flag "--all" for command alt update #7

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pkess
Copy link
Contributor

@pkess pkess commented Jun 2, 2015

Hi,

i think this command could be usefull as it simplifies an update of several alternative locations in a single command

pkess added 2 commits June 2, 2015 21:30
beetsplug/alternatives.py contained whitespaces in blank line
Copy link
Collaborator

@wisp3rwind wisp3rwind left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like a useful feature to me, what do you think @geigerzaehler?

alt = self.alternative(options.name, lib)
alts = []
if options.all:
for key in self.config.keys():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, this would be more concisely written as a list comprehension

alts = [self.alternative(key, lib) for key in self.config]

@geigerzaehler
Copy link
Owner

Looks like a good addition to me, too. Would you like to continue with this @pkess? Before merging we would need documentation and tests.

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.

None yet

3 participants