-
Notifications
You must be signed in to change notification settings - Fork 932
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
Backup/restore specific applications #2034
base: master
Are you sure you want to change the base?
Conversation
|
||
# To allow for specific applications to be backed up, we replace the full list with only the valid ones from the command line | ||
if args["<application>"]: | ||
applications = list(set(args["<application>"]) & set(applications)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should it fail here if any explicit application is not recognized?
silent ignoring them seems dangerous, as it would imply everything went fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should also be sorted again, to maintain the same behaviour
@@ -179,8 +197,8 @@ def printAppHeader(app_name): | |||
|
|||
elif args["show"]: | |||
mckp.check_for_usable_environment() | |||
app_name = args["<application>"] | |||
|
|||
app_name = args["<application>"][0] # Needed because args["<application>"] is now a list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not support multiple applications also in show command?
This is a quick take at allowing backup/restore of specific applications. I found it useful for myself and found at least two people requesting it on #2019 and #1892. I'll try to add the option to do the same with the uninstall command in the future.
All submissions
Adding/updating Application X Support
Improving the Mackup codebase