1
0
Fork 0
mirror of https://github.com/Findus23/PaperLibrary-cli.git synced 2024-09-20 17:03:46 +02:00
PaperLibrary-cli/paperlibrary/pap.py

21 lines
370 B
Python
Raw Normal View History

2020-10-14 21:38:36 +02:00
import click
from paperlibrary.api import PaperLibraryAPI
from paperlibrary.config import url, auth_token
from paperlibrary.library import write_symlinks, update_pdfs
@click.group()
def cli():
pass
@cli.command()
def update():
api=PaperLibraryAPI(url,auth_token=auth_token)
write_symlinks(api)
update_pdfs(api)
if __name__ == '__main__':
cli()