mirror of
https://github.com/borgbackup/borg.git
synced 2024-09-11 12:36:12 +03:00
15 lines
404 B
Python
Executable File
15 lines
404 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
from textwrap import indent
|
|
|
|
import borg.archiver
|
|
from borg.helpers import Error, ErrorWithTraceback
|
|
|
|
classes = Error.__subclasses__() + ErrorWithTraceback.__subclasses__()
|
|
|
|
for cls in sorted(classes, key=lambda cls: (cls.__module__, cls.__qualname__)):
|
|
if cls is ErrorWithTraceback:
|
|
continue
|
|
print(' ', cls.__qualname__)
|
|
print(indent(cls.__doc__, ' ' * 8))
|