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

feat(commands): Add update command #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hubertdeng123
Copy link
Member

This adds the update command to devservices

For global installs, this will download the latest binary off of GitHub, detect the correct binary for linux/darwin operating systems, and automatically install. It will also automatically check for update after each invocation of devservices.

For installs in virtual environments, it prints instructions to update the requirements.txt.

@@ -68,6 +71,14 @@ def main() -> None:
else:
parser.print_help()

if args.command != "update":
Copy link
Member Author

Choose a reason for hiding this comment

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

I can see a major downside to this:

If user is not connected to internet, this will error out and cause spam. I think it is ok to leave it as is and put a workaround in later though

Copy link
Member Author

Choose a reason for hiding this comment

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

Ultimately, it is far more useful to notify users to update if available

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