You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: REFERENCE.rst
+59-2Lines changed: 59 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@ about
11
11
12
12
::
13
13
14
-
--version Show the version and exit.
15
-
--help Show this message and exit.
14
+
--version Show the version and exit.
15
+
-h, --help Show this message and exit.
16
16
17
17
**Commands:**
18
18
@@ -22,6 +22,7 @@ about
22
22
check LOCATION: directory
23
23
gen LOCATION: input file, OUTPUT: directory
24
24
inventory LOCATION: directory, OUTPUT: csv file
25
+
transform LOCATION: csv file, OUTPUT: csv file
25
26
26
27
27
28
attrib
@@ -352,3 +353,59 @@ The multiple licenses support format for ABOUT files are by "grouping" with the
352
353
- key: mit
353
354
name: mit.LICENSE
354
355
356
+
357
+
transform
358
+
=========
359
+
360
+
**Syntax**
361
+
362
+
::
363
+
364
+
about transform [OPTIONS] LOCATION OUTPUT
365
+
366
+
LOCATION: Path to a CSV file.
367
+
OUTPUT: Path to CSV inventory file to create.
368
+
369
+
**Options:**
370
+
371
+
::
372
+
373
+
-c, --configuration FILE Path to an optional YAML configuration file. See
374
+
--help-format for format help.
375
+
--help-format Show configuration file format help and exit.
376
+
-q, --quiet Do not print error or warning messages.
377
+
--verbose Show all error and warning messages.
378
+
-h, --help Show this message and exit.
379
+
380
+
Purpose
381
+
-------
382
+
Transform the CSV file at LOCATION by applying renamings, filters and checks and write a new CSV to OUTPUT.
383
+
384
+
Options
385
+
-------
386
+
387
+
::
388
+
389
+
-c, --configuration
390
+
391
+
Path to an optional YAML configuration file. See--help-format for format help.
392
+
393
+
$ about transform -c 'path to the YAML configuration file' LOCATION OUTPUT
394
+
395
+
--help-format
396
+
397
+
Show configuration file format help and exit.
398
+
This option will print out examples of the the YAML configuration file.
399
+
400
+
Keys configuration are: `column_renamings`, `required_columns` and `column_filters`
401
+
402
+
$ about transform --help-format
403
+
404
+
--verbose
405
+
406
+
This option tells the tool to show all errors found.
407
+
The default behavior will only show 'CRITICAL', 'ERROR', and 'WARNING'
408
+
409
+
Special Notes
410
+
=============
411
+
When using the `column_filters` configuration, all the standard required columns (`about_resource` and `name`) and the user definied `required_columns` need to be included.
0 commit comments