Coverage for python/lsst/ctrl/bps/cli/bps.py: 88%
17 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-03-01 02:51 -0800
« prev ^ index » next coverage.py v6.5.0, created at 2023-03-01 02:51 -0800
1# This file is part of ctrl_bps.
2#
3# Developed for the LSST Data Management System.
4# This product includes software developed by the LSST Project
5# (https://www.lsst.org).
6# See the COPYRIGHT file at the top-level directory of this distribution
7# for details of code ownership.
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13#
14# This program is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18#
19# You should have received a copy of the GNU General Public License
20# along with this program. If not, see <https://www.gnu.org/licenses/>.
21import click
22from lsst.daf.butler.cli.butler import LoaderCLI
23from lsst.daf.butler.cli.opt import (
24 log_file_option,
25 log_label_option,
26 log_level_option,
27 log_tty_option,
28 long_log_option,
29)
30from lsst.daf.butler.cli.utils import unwrap
32epilog = unwrap(
33 """Note:
35Commands 'acquire', 'cluster', 'transform', and 'prepare' halt the submission
36process at different points prior to submitting the workflow for execution. See
37the help for individual command for more details.
39However, the current version does not support starting the submission process
40from any of these intermediate points.
41"""
42)
45class BpsCli(LoaderCLI):
46 localCmdPkg = "lsst.ctrl.bps.cli.cmd"
49@click.command(cls=BpsCli, context_settings=dict(help_option_names=["-h", "--help"]), epilog=epilog)
50@log_level_option(default=["INFO"])
51@long_log_option()
52@log_file_option()
53@log_tty_option()
54@log_label_option()
55def cli(log_level, long_log, log_file, log_tty, log_label):
56 pass
59def main():
60 return cli()