mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-13 07:33:47 +00:00
implement --short for borg list REPO, fixes #611
This commit is contained in:
parent
695dc68479
commit
12fe47fcd2
1 changed files with 4 additions and 1 deletions
|
@ -474,7 +474,10 @@ class Archiver:
|
||||||
for archive_info in manifest.list_archive_infos(sort_by='ts'):
|
for archive_info in manifest.list_archive_infos(sort_by='ts'):
|
||||||
if args.prefix and not archive_info.name.startswith(args.prefix):
|
if args.prefix and not archive_info.name.startswith(args.prefix):
|
||||||
continue
|
continue
|
||||||
print(format_archive(archive_info))
|
if args.short:
|
||||||
|
print(archive_info.name)
|
||||||
|
else:
|
||||||
|
print(format_archive(archive_info))
|
||||||
return self.exit_code
|
return self.exit_code
|
||||||
|
|
||||||
def do_info(self, args):
|
def do_info(self, args):
|
||||||
|
|
Loading…
Add table
Reference in a new issue