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
|
#! /usr/bin/python -u
#
# Copyright 2017 Canonical Ltd. This software is licensed under the
# GNU Affero General Public License version 3 (see the file LICENSE).
"""Run an operation in the target."""
from __future__ import print_function
__metaclass__ = type
import sys
from lpbuildd.target.cli import (
configure_logging,
parse_args,
)
def main():
configure_logging()
args = parse_args()
return args.operation.run()
if __name__ == "__main__":
sys.exit(main())
|