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: docs/source/general.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ AboutCode Toolkit is a tool for your software development team to document your
19
19
20
20
- **inventory**: Generate a Software Inventory list (.csv or .json format) from your codebase based on ABOUT file(s). Note that this Software Inventory will only include components that have AboutCode Toolkit data. In another word, if you do not create AboutCode Toolkit files for your own original software components, these components will not show up in the generated inventory.
21
21
22
-
- **transform**: A command to transform an input CSV/JSON by applying renaming and/or filtering and then output to a new CSV/JSON file.
22
+
- **transform**: A command to transform an input CSV/JSON/Excel by applying renaming and/or filtering and then output to a new CSV/JSON/Excel file.
23
23
24
24
Additional AboutCode Toolkit information is available at:
25
25
@@ -168,11 +168,11 @@ Fields Renaming and Optional Custom Fields
168
168
169
169
Since your input's field name may not match with the AboutCode Toolkit standard field name, you can use the transform subcommand to do the transformation.
170
170
171
-
A transform configuration file is used to describe which transformations and validations to apply to a source CSV/JSON file. This is a simple text file using YAML format, using the same format as an .ABOUT file.
171
+
A transform configuration file is used to describe which transformations and validations to apply to a source CSV/JSON/Excel file. This is a simple text file using YAML format, using the same format as an .ABOUT file.
172
172
173
173
The attributes that can be set in a configuration file are:
174
174
175
-
- field_renamings: An optional map of source field name to target new field name that is used to rename CSV/JSON fields.
175
+
- field_renamings: An optional map of source field name to target new field name that is used to rename CSV/JSON/Excel fields.
176
176
177
177
.. code-block:: none
178
178
@@ -184,7 +184,7 @@ The attributes that can be set in a configuration file are:
184
184
The renaming is always applied first before other transforms and checks. All other field names referenced below are AFTER the renaming have been applied.
185
185
For instance with this configuration, the field "Directory/Location" will be renamed to "about_resource" and "foo" to "bar":
186
186
187
-
- required_fields: An optional list of required field names that must have a value, beyond the standard field names. If a source CSV/JSON does not have such a field or an entry is missing a value for a required field, an error is reported.
187
+
- required_fields: An optional list of required field names that must have a value, beyond the standard field names. If a source CSV/JSON/Excel does not have such a field or an entry is missing a value for a required field, an error is reported.
188
188
189
189
For instance with this configuration, an error will be reported if the fields "name" and "version" are missing, or if any entry does not have a value set for these fields:
Copy file name to clipboardExpand all lines: docs/source/reference.rst
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Commands
34
34
gen Generate .ABOUT files from an inventory as CSV or JSON.
35
35
inventory Collect the inventory of .ABOUT files to a CSV or JSON
36
36
file.
37
-
transform Transform a CSV/JSON by applying renamings, filters and checks.
37
+
transform Transform a CSV/JSON/Excel by applying renamings, filters and checks.
38
38
39
39
attrib
40
40
======
@@ -446,8 +446,8 @@ Syntax
446
446
447
447
about transform [OPTIONS] LOCATION OUTPUT
448
448
449
-
LOCATION: Path to a CSV/JSON file.
450
-
OUTPUT: Path to CSV/JSON inventory file to create.
449
+
LOCATION: Path to a CSV/JSON/Excel file.
450
+
OUTPUT: Path to CSV/JSON/Excel inventory file to create.
451
451
452
452
Options
453
453
-------
@@ -464,7 +464,7 @@ Options
464
464
Purpose
465
465
-------
466
466
467
-
Transform the CSV/JSON file at LOCATION by applying renamings, filters and checks and then write a new CSV/JSON to OUTPUT (Format for input and output need to be the same).
467
+
Transform the CSV/JSON/Excel file at LOCATION by applying renamings, filters and checks and then write a new CSV/JSON/Excel to OUTPUT (Format for input and output need to be the same).
0 commit comments