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

Add --add and --rm path to Action Menu #157

Merged
merged 13 commits into from
Oct 30, 2018
Merged

Add --add and --rm path to Action Menu #157

merged 13 commits into from
Oct 30, 2018

Conversation

alichtman
Copy link
Owner

#156 #140

Related to #129

Copy link
Owner Author

@alichtman alichtman left a 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 Show resolved Hide resolved
@@ -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.")
Copy link
Owner Author

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)

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.
Copy link
Owner Author

Choose a reason for hiding this comment

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

Finish proofing this method for which abs/non-abs paths get printed and stored.

image

This shouldn't happen.

shallow_backup/config.py Outdated Show resolved Hide resolved
@alichtman
Copy link
Owner Author

alichtman commented Oct 28, 2018

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.

image

One potential solution is to make --add a Click command entry point. Here's an SO post kind of about this: https://stackoverflow.com/a/44056564/8740440

@alichtman
Copy link
Owner Author

New gameplan:

  1. Remove --add and --rm args from CLI
  2. Update help menu
  3. Implement Add --add & --rm commands to actions menu #129

@alichtman alichtman changed the title Expand --add arg functionality Add --add and --rm path to Action Menu Oct 30, 2018
@alichtman alichtman merged commit 62d36de into master Oct 30, 2018
@alichtman
Copy link
Owner Author

Close #129, #156

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.

1 participant