/usr/bin/livereload is in python3-livereload 2.2.2-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/usr/bin/python3
import argparse
from livereload.server import Server
def main():
"""Define command to parse CLI arguments and start `livereload` server"""
# Parse our arguments
parser = argparse.ArgumentParser(description='Start a `livereload` server')
parser.add_argument(
'-p', '--port',
help='Port to run `livereload` server on',
type=int,
default=35729
)
parser.add_argument(
'directory',
help='Directory to watch for changes',
type=str,
default='.',
nargs='?'
)
args = parser.parse_args()
# Create a new application
server = Server()
server.serve(port=args.port, root=args.directory)
if __name__ == '__main__':
main()
|