Skip to content

Commit 39e6298

Browse files
committed
Rename -f csv_export to -f csv for consistency with other formatter names
1 parent bff9fe0 commit 39e6298

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Currently KRR ships with a few formatters to represent the scan data:
336336
- `json`
337337
- `yaml`
338338
- `pprint` - data representation from python's pprint library
339-
- `csv_export` - export data to a csv file in the current directory
339+
- `csv` - export data to a csv file in the current directory
340340

341341
To run a strategy with a selected formatter, add a `-f` flag:
342342

robusta_krr/formatters/csv.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ def _format_total_diff(item: ResourceScan, resource: ResourceType, pods_current:
4040

4141

4242
@formatters.register()
43-
def csv_export(result: Result) -> str:
44-
43+
def csv(result: Result) -> str:
4544
current_datetime = datetime.datetime.now().strftime("%Y%m%d%H%M%S")
4645
file_path = f"krr-{current_datetime}.csv"
4746

0 commit comments

Comments
 (0)