]> arthur.barton.de Git - bup.git/blob - lib/bup/cmd/ls.py
29323ccf9bef98476ba17031ed45d3645244f91e
[bup.git] / lib / bup / cmd / ls.py
1
2 from __future__ import absolute_import, print_function
3 import sys
4
5 from bup import git, ls
6 from bup.io import byte_stream
7
8 def main(argv):
9     git.check_repo_or_die()
10
11     sys.stdout.flush()
12     out = byte_stream(sys.stdout)
13     # Check out lib/bup/ls.py for the opt spec
14     rc = ls.via_cmdline(argv[1:], out=out)
15     sys.exit(rc)