saadpasta / node-cli-mart

3 stars 1 forks source link

Adding custom CSV import #1

Open ghost opened 3 years ago

ghost commented 3 years ago

I think that this has the possibility to become more dynamic so adding a feature to give the user the ability to import their own CSV from an authenticated source or even locally would prove better, in my opinion.

saadpasta commented 3 years ago

You can also do that by adding the csv locally and changing the command we have 2 csv locally currently inventory2.csv and inventory.csv.

Run command supermart inventory2.csv to get data from inventory2.

On Mon, 21 Dec 2020, 4:54 pm Hunter, notifications@github.com wrote:

I think that this has the possibility to become more dynamic so adding a feature to give the user the ability to import their own CSV from an authenticated source or even locally would prove better, in my opinion.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/saadpasta/node-cli-mart/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFR2MI2HGYE2ON7TBN6NXXDSV4ZOXANCNFSM4VEDWDDQ .

ghost commented 3 years ago

Ah okay so then that should handle paths outside of the root project as well. What about creating one? As in creating an inventory. Then having the user establish a particular root structure defined by the CLI program. Could be useful.

saadpasta commented 3 years ago

Currently, we are only handling file path for root only. If you want to update then you can update or create a new CSV locally.