Closed armansujoyan closed 6 years ago
Hi @armansujoyan,
I had a quick look and overall it looks great! Could you also add a flag for providing an output directory for json/csv? We can default to current directory if flag is not set.
I don't think there is need to add that flag. Righ now instead of the name you can write something like folder/filename and it will output the file there. Example of call is football fixtures -l WC --json stats/fixturesWC
. This will output the file to the folder stats
with the name fixtures.json, if the folder stats is available.
Done!
@ManrajGrover I have added another flag for showing the directory where the data needs to be saved.
@armansujoyan Thank you for working on this. I'll review this ASAP.
Description of new feature, or changes
Implemented the ability to output fetched data in JSON and CSV formats by giving --json and --csv flags, followed by file names. If there are no file names specified in the CLI, by default files are saved as
footballOut.csv
orfootballOut.json
.Related Issues and Discussions
Feature Request: Allow exporting output as JSON or CSV #20
People to notify
@ManrajGrover