Coverage for python/lsst/images/cli/_main.py: 100%

21 statements  

« prev     ^ index     » next       coverage.py v7.14.3, created at 2026-07-09 02:27 -0700

1# This file is part of lsst-images. 

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# Use of this source code is governed by a 3-clause BSD-style 

10# license that can be found in the LICENSE file. 

11from __future__ import annotations 

12 

13__all__ = ("main",) 

14 

15import click 

16 

17from ..tests.extract_legacy_test_data import extract_test_data 

18from ..tests.verify_rewrite import verify_rewrite 

19from ._convert import convert 

20from ._diagram import diagram 

21from ._fuzz import fuzz_masked_image 

22from ._inspect import inspect 

23from ._minify import minify 

24from ._reformat import reformat 

25 

26 

27@click.group(name="lsst-images-admin", context_settings={"help_option_names": ["-h", "--help"]}) 

28def main() -> None: 

29 """Administrative tools for lsst.images files.""" 

30 

31 

32main.add_command(convert) 

33main.add_command(diagram) 

34main.add_command(inspect) 

35main.add_command(minify) 

36main.add_command(reformat) 

37main.add_command(extract_test_data, name="extract-test-data") 

38main.add_command(verify_rewrite, name="verify-rewrite") 

39main.add_command(fuzz_masked_image, name="fuzz-masked-image")