renamed
This commit is contained in:
@@ -91,7 +91,7 @@ def main(
|
|||||||
except Exception:
|
except Exception:
|
||||||
console.print_exception()
|
console.print_exception()
|
||||||
else:
|
else:
|
||||||
snapshots.run(loki_url)
|
snapshots.snapshot(loki_url)
|
||||||
size.get_size(loki_url)
|
size.get_size(loki_url)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ from restic.console import console, logger
|
|||||||
from restic.loki import send_to_loki
|
from restic.loki import send_to_loki
|
||||||
|
|
||||||
|
|
||||||
def run(loki_url: str = None):
|
def snapshot(loki_url: str = None):
|
||||||
cmd = ['restic', 'snapshots', '--json']
|
cmd = ['restic', 'snapshots', '--json']
|
||||||
|
|
||||||
with console.status('Getting snapshots...'):
|
with console.status('Getting snapshots...'):
|
||||||
@@ -31,7 +31,7 @@ def main(loki_url: str = None):
|
|||||||
level='DEBUG', format='%(message)s', handlers=[RichHandler(markup=True, console=console)]
|
level='DEBUG', format='%(message)s', handlers=[RichHandler(markup=True, console=console)]
|
||||||
)
|
)
|
||||||
|
|
||||||
run(loki_url)
|
snapshot(loki_url)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Reference in New Issue
Block a user