Skip to content

Commit acd2231

Browse files
committed
changed column_renamings, required_columns and column_filters to field_renamings, required_fields and field_filters respectively
Signed-off-by: Srthkdb <[email protected]>
1 parent ed891cf commit acd2231

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

tests/testdata/test_cmd/help/about_transform_config_help.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ format, using the same format as an .ABOUT file.
55

66
The attributes that can be set in a configuration file are:
77

8-
* column_renamings:
8+
* field_renamings:
99
An optional map of source CSV column name to target CSV new column name that
1010
is used to rename CSV columns.
1111

1212
For instance with this configuration the columns "Directory/Location" will be
1313
renamed to "about_resource" and "foo" to "bar":
14-
column_renamings:
14+
field_renamings:
1515
'Directory/Location' : about_resource
1616
foo : bar
1717

1818
The renaming is always applied first before other transforms and checks. All
1919
other column names referenced below are these that exist AFTER the renamings
2020
have been applied to the existing column names.
2121

22-
* required_columns:
22+
* required_fields:
2323
An optional list of required column names that must have a value, beyond the
2424
standard columns names. If a source CSV does not have such a column or a row is
2525
missing a value for a required column, an error is reported.
2626

2727
For instance with this configuration an error will be reported if the columns
2828
"name" and "version" are missing or if any row does not have a value set for
2929
these columns:
30-
required_columns:
30+
required_fields:
3131
- name
3232
- version
3333

34-
* column_filters:
34+
* field_filters:
3535
An optional list of column names that should be kept in the transformed CSV. If
3636
this list is provided, all the columns from the source CSV that should be kept
3737
in the target CSV must be listed be even if they are standard or required
@@ -40,7 +40,7 @@ transformed target CSV.
4040

4141
For instance with this configuration the target CSV will only contains the "name"
4242
and "version" columns and no other column:
43-
column_filters:
43+
field_filters:
4444
- name
4545
- version
4646

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
column_renamings:
1+
field_renamings:
22
'Directory/Filename' : about_resource
33
Component: name
4-
column_filters:
4+
field_filters:
55
- about_resource
66
- name
77
- version
8-
required_columns:
8+
required_fields:
99
- name
1010
- version
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
column_renamings:
1+
field_renamings:
22
extension : new_extension
3-
column_filters:
3+
field_filters:
44
- name
55
- new_extension
66
- about_resource
7-
required_columns:
7+
required_fields:
88
- name
99

1010

0 commit comments

Comments
 (0)