Debian Codegraph @

tests/__snapshots__/test_docs_snapshots/TestRstSnapshots.test_data_commands_rst.rst

raw
1 .. _cyclopts-complex-cli:
2
3 complex-cli
4 -----------
5
6 ::
7
8 complex-cli COMMAND [OPTIONS]
9
10 Complex CLI application for comprehensive documentation testing.
11
12 .. contents:: Table of Contents
13 :local:
14 :depth: 6
15
16 **Global Options:**
17
18 ``--verbose, -v``
19 Verbosity level (-v, -vv, -vvv). [Default: ``0``]
20
21 ``--quiet, -q, --no-quiet``
22 Suppress non-essential output. [Default: ``False``]
23
24 ``--log-level``
25 Logging level. [Choices: ``debug``, ``info``, ``warning``, ``error``, ``critical``, Default: ``info``]
26
27 ``--no-color, --no-no-color``
28 Disable colored output [Default: ``False``]
29
30 **Subcommands:**
31
32 ``data``
33 Data processing commands.
34
35 .. _cyclopts-complex-cli-data:
36
37 data
38 ^^^^
39
40 Data processing commands.
41
42 **Commands:**
43
44 ``pipeline``
45 Run a complete data pipeline.
46
47 ``process``
48 Process data files with configurable options.
49
50 ``validate``
51 Validate data files against schema.
52
53 .. _cyclopts-complex-cli-data-process:
54
55 process
56 """""""
57
58 ::
59
60 complex-cli data process [OPTIONS] INPUT_FILES
61
62 Process data files with configurable options.
63
64 This command demonstrates dataclass parameter flattening where
65 all fields from ProcessingConfig and PathConfig become CLI options.
66
67 **Arguments:**
68
69 ``INPUT_FILES``
70 Input files to process [**Required**]
71
72 **Parameters:**
73
74 ``--batch-size``
75 Number of items to process per batch. [Default: ``32``]
76
77 ``--num-workers``
78 Number of parallel workers. Use "auto" for automatic detection. [Choices: ``auto``, Default: ``auto``]
79
80 ``--quality-level``
81 Processing quality level. Higher values mean better quality but slower. [Choices: ``high``, ``medium``, ``low``, Default: ``high``]
82
83 ``--device``
84 Computing device to use. Can be "cuda", "cpu", "auto", or a GPU index. [Choices: ``cuda``, ``cpu``, ``auto``, Default: ``auto``]
85
86 ``--output-formats, --empty-output-formats``
87 List of output formats to generate. [Choices: ``json``, ``yaml``, ``table``, ``csv``, Default: ``[json]``]
88
89 ``--input-dir``
90 Input data directory. [Default: ``data/input``]
91
92 ``--output-dir``
93 Output results directory. [Default: ``data/output``]
94
95 ``--cache-dir``
96 Cache directory for intermediate files.
97
98 ``--log-dir``
99 Directory for log files. [Default: ``logs``]
100
101 .. _cyclopts-complex-cli-data-pipeline:
102
103 pipeline
104 """"""""
105
106 ::
107
108 complex-cli data pipeline [OPTIONS]
109
110 Run a complete data pipeline.
111
112 Demonstrates nested dataclass flattening (PipelineConfig contains
113 PathConfig and ProcessingConfig).
114
115 **Parameters:**
116
117 ``--name``
118 Pipeline name for identification. [Default: ``default-pipeline``]
119
120 ``--input-dir``
121 Input data directory. [Default: ``data/input``]
122
123 ``--output-dir``
124 Output results directory. [Default: ``data/output``]
125
126 ``--cache-dir``
127 Cache directory for intermediate files.
128
129 ``--log-dir``
130 Directory for log files. [Default: ``logs``]
131
132 ``--batch-size``
133 Number of items to process per batch. [Default: ``32``]
134
135 ``--num-workers``
136 Number of parallel workers. Use "auto" for automatic detection. [Choices: ``auto``, Default: ``auto``]
137
138 ``--quality-level``
139 Processing quality level. Higher values mean better quality but slower. [Choices: ``high``, ``medium``, ``low``, Default: ``high``]
140
141 ``--device``
142 Computing device to use. Can be "cuda", "cpu", "auto", or a GPU index. [Choices: ``cuda``, ``cpu``, ``auto``, Default: ``auto``]
143
144 ``--output-formats, --empty-output-formats``
145 List of output formats to generate. [Choices: ``json``, ``yaml``, ``table``, ``csv``, Default: ``[json]``]
146
147 ``--dry-run, --no-dry-run``
148 If True, simulate execution without making changes. [Default: ``False``]
149
150 .. _cyclopts-complex-cli-data-validate:
151
152 validate
153 """"""""
154
155 ::
156
157 complex-cli data validate [OPTIONS] INPUT_PATH
158
159 Validate data files against schema.
160
161 **Arguments:**
162
163 ``INPUT_PATH``
164 Path to validate. [**Required**]
165
166 **Parameters:**
167
168 ``--strict, --no-strict``
169 Enable strict validation mode. [Default: ``False``]
170
171 ``--schema-file``
172 Custom schema file (must exist).
173
174 ``--ignore-patterns, --empty-ignore-patterns``
175 Patterns to ignore during validation.