mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added update command
This commit is contained in:
parent
414f530035
commit
a6b1a8a144
@ -58,7 +58,7 @@ Also neat: You can use your **custom artist or track images**.
|
|||||||
|
|
||||||
maloja backup
|
maloja backup
|
||||||
|
|
||||||
or, to only backup essential data (no artwork etc)
|
or, to only backup essential data (no artwork etc)
|
||||||
|
|
||||||
maloja backup -l minimal
|
maloja backup -l minimal
|
||||||
|
|
||||||
|
@ -195,7 +195,8 @@ def backup(level="full"):
|
|||||||
for f in real_files:
|
for f in real_files:
|
||||||
archive.add(f)
|
archive.add(f)
|
||||||
|
|
||||||
|
def update():
|
||||||
|
os.system("pip3 install malojaserver --upgrade --no-cache-dir")
|
||||||
|
|
||||||
@mainfunction({"l":"level"},shield=True)
|
@mainfunction({"l":"level"},shield=True)
|
||||||
def main(action,*args,**kwargs):
|
def main(action,*args,**kwargs):
|
||||||
@ -205,7 +206,8 @@ def main(action,*args,**kwargs):
|
|||||||
"stop":stop,
|
"stop":stop,
|
||||||
"import":loadlastfm,
|
"import":loadlastfm,
|
||||||
"debug":direct,
|
"debug":direct,
|
||||||
"backup":backup
|
"backup":backup,
|
||||||
|
"update":update
|
||||||
}
|
}
|
||||||
if action in actions: actions[action](*args,**kwargs)
|
if action in actions: actions[action](*args,**kwargs)
|
||||||
else: print("Valid commands: " + " ".join(a for a in actions))
|
else: print("Valid commands: " + " ".join(a for a in actions))
|
||||||
|
Loading…
Reference in New Issue
Block a user