Closed elbrando closed 9 years ago
File name, too, please.
Ok I will add and --output
option and just to make things a bit easier, also add an -o
alias for shorthand. Leaving a dev reference for myself or whomever else wants to finish this feature before me: http://vdemedes.github.io/ronin/guides/options/
Introducing a new settings.json
file:
{
"defaultOutputDirectory": "/Users/pulkitsinghal/Dropbox/vend-tools",
"timestampFiles": false
}
With such a config ... running:
$ vend-tools fetch-product-by-sku --sku 100
Throws the data into:
/Users/pulkitsinghal/Dropbox/vend-tools/fetch-product-by-sku.json
which is a predictable filename in a shared directory ... I wonder if that's good enough or if a custom output filename is still a worthy add-on?
@elbrando reported that files with *.csv
extensions don't follow the rules like the *.json
ones! will fix soon
Would be nice to specify once where the file should be saved rather than it being dropped in the working folder.