ablestar / ablestar-cli

A command tool for importing and exporting data from your Shopify store
GNU Affero General Public License v3.0
39 stars 1 forks source link

Log output from imports to a file #13

Closed d-beck closed 1 year ago

d-beck commented 1 year ago

The creating/updating collections (#3 and #4) is very useful but one thing I ran into while testing it is that it's hard to verify the results. It would be nice if we could generate a log of the import processes for review afterwards.

Taking a queue from Matrixify, they create a results file when you run an export. The results file is the original file + several rows at the end describing what occured:

image

Full reference for these columns is here.

When we run an import can we:

? Please choose what you will do import
? Please enter file path/name:  Smart.Collections.xlsx
? Please choose which field you try to import/update:  Automated Collection
? Please choose store example-store.myshopify.com
? Please choose which format file you will import. Matrixify

[████████████████████████████████████████] 100% | DUR: 4s | ETA: 0s | 2/2

2 items success, 0 items skip, and 0 items failed

Results saved to Smart.Collection_Results.csv