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

25 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-07-30 08:38 +0000

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 ._describe import describe 

21from ._diagram import diagram 

22from ._fuzz import fuzz_masked_image 

23from ._inspect import inspect 

24from ._minify import minify 

25from ._reformat import reformat 

26from ._schemas import schemas 

27 

28 

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

30def main() -> None: 

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

32 

33 

34main.add_command(convert) 

35main.add_command(describe) 

36main.add_command(diagram) 

37main.add_command(inspect) 

38main.add_command(minify) 

39main.add_command(reformat) 

40main.add_command(schemas) 

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

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

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