mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-07-22 02:03:01 +02:00
28 lines
593 B
Python
28 lines
593 B
Python
import logging
|
|
|
|
|
|
def run_browse(
|
|
diff_arguments,
|
|
global_arguments,
|
|
configs,
|
|
):
|
|
'''
|
|
Run the "browse" action for the given repository.
|
|
'''
|
|
if not configs:
|
|
return
|
|
|
|
logging.getLogger('asyncio').setLevel(logging.WARNING)
|
|
|
|
try:
|
|
import textual
|
|
except ImportError: # pragma: no cover
|
|
raise ValueError(
|
|
'Unable to import the Textual library for the browse action; try installing "borgmatic[browse]"'
|
|
)
|
|
|
|
import borgmatic.actions.browse.app
|
|
|
|
app = borgmatic.actions.browse.app.Browse_app(configs)
|
|
app.run()
|