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

Enable updating of themes from CLI #26

Open
6 tasks
Descent098 opened this issue Aug 2, 2021 · 0 comments
Open
6 tasks

Enable updating of themes from CLI #26

Descent098 opened this issue Aug 2, 2021 · 0 comments

Comments

@Descent098
Copy link
Owner

Descent098 commented Aug 2, 2021

Features

  • Create function to call to check for updates
  • Let people know when they use the ezcv build that they should upgrade if a new version is available
  • Put a little (upgrade available) tag when someone uses ezcv -l and upgrades are available for local themes

Get ezcv theme details

import requests
import datetime
response = requests.get('https://api.github.com/repos/QU-UP/ezcv-themes/branches/main')

# print response
print(response)

# print json content
print(response.json()["commit"]["commit"]["author"]["date"])

print(datetime.datetime.strptime(response.json()["commit"]["commit"]["author"]["date"], "%Y-%m- 
%dT%H:%M:%SZ").strftime("%Y-%m-%d")) # returns string of "Year-Month-Day"
@Descent098 Descent098 moved this to To do in ezcv V0.4.0 Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To do
Development

No branches or pull requests

1 participant