-
Notifications
You must be signed in to change notification settings - Fork 250
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
Add --add and --rm path to Action Menu #157
Conversation
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.
Finish add
and rm
docs and final implementation tweaks/features.
shallow_backup/cli.py
Outdated
@@ -29,14 +29,15 @@ | |||
@click.option('-reinstall_packages', is_flag=True, default=False, help="Reinstall packages.") | |||
@click.option('-reinstall_all', is_flag=True, default=False, help="Full reinstallation.") | |||
@click.option('--remote', default=None, help="Set remote URL for the git repo.") | |||
@click.option('--rm', default=None, type=str, help="Remove path from config.") | |||
@click.option('-show', is_flag=True, default=False, help="Show config file.") | |||
@click.option('--rm', default=None, type=str, help="Remove path from backup.") |
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.
Add note about how to remove configs and plists (and check that it's actually implemented too)
shallow_backup/config.py
Outdated
sys.exit(1) | ||
elif section == "other": | ||
print(Fore.RED + Style.BRIGHT + "ERR: Option not currently supported." + Style.RESET_ALL) | ||
# TODO: Finish proofing this for which abs/non-abs paths get printed and stored. |
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.
Issue: Broken --add [ARG ARG] The issue here is that nargs is either set to 2 or 3, and won't let the last arg be optional. Need to figure out how to make it optional. One potential solution is to make |
New gameplan:
|
#156 #140
Related to #129