24 from lsst.daf.butler.cli.opt
import repo_argument, config_option, config_file_option, run_option
25 from lsst.daf.butler.cli.utils
import cli_handle_exception
26 from ..opt
import instrument_option
27 from ...script
import ingestRaws, writeCuratedCalibrations, registerInstrument
31 @repo_argument(required=
True)
34 @run_option(required=
True)
35 @click.option(
"-d",
"--dir",
"directory",
36 help=
"The path to the directory containing the raws to ingest.")
37 @click.option(
"-f",
"--file", help=
"The name of a file containing raws to ingest.")
38 @click.option(
"-t",
"--transfer", help=
"The external data transfer type.", default=
"auto")
39 @click.option(
"--ingest-task", default=
"lsst.obs.base.RawIngestTask", help=
"The fully qualified class name "
40 "of the ingest task to use.")
42 cli_handle_exception(ingestRaws, *args, **kwargs)
46 @repo_argument(required=
True)
47 @instrument_option(required=
True, help=
"The fully-qualified name of an Instrument subclass.")
49 """Add an instrument to the data repository.
51 cli_handle_exception(registerInstrument, *args, **kwargs)
55 @repo_argument(required=
True)
56 @instrument_option(required=
True)
57 @run_option(required=
True)
59 """Add an instrument's curated calibrations to the data repository.
61 cli_handle_exception(writeCuratedCalibrations, *args, **kwargs)