]> arthur.barton.de Git - bup.git/blob - lib/cmd/ls-cmd.py
Move cmd to lib/ and reverse symlink
[bup.git] / lib / cmd / ls-cmd.py
1 #!/bin/sh
2 """": # -*-python-*-
3 bup_python="$(dirname "$0")/bup-python" || exit $?
4 exec "$bup_python" "$0" ${1+"$@"}
5 """
6 # end of bup preamble
7
8 from __future__ import absolute_import
9 import sys
10
11 from bup import git, ls
12 from bup.io import byte_stream
13
14
15 git.check_repo_or_die()
16
17 sys.stdout.flush()
18 out = byte_stream(sys.stdout)
19 # Check out lib/bup/ls.py for the opt spec
20 rc = ls.via_cmdline(sys.argv[1:], out=out)
21 sys.exit(rc)