Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cfimp read only first line in csv #3

Open
gitomatikus opened this issue Sep 26, 2022 · 1 comment
Open

cfimp read only first line in csv #3

gitomatikus opened this issue Sep 26, 2022 · 1 comment

Comments

@gitomatikus
Copy link

gitomatikus commented Sep 26, 2022

csv file:

text1,1050,2100,ref-123
text2,1060,2200,ref-124
text3,1070,2400,ref-124

Line command: npx cfimp -space:space -model:modelname -locale:en-US -delim:com -fields:name,amount,oldAmount,locale -preview
return:
image

And if I will try to run it without preview, only first line will be upliaded

@mitya33
Copy link
Owner

mitya33 commented Sep 30, 2022

From my testing, this seems to be related to the inconsistent way CLI args are passed to Node in different contexts.

One breaking change I've made in response is that any arguments that are passed a list, e.g. fields, must now be quoted, e.g. ... -fields:"one,two,three".

Could you please try the following possible solutions, until one works (noting the instruction above, too, re: quotes):

  1. Try again via NPX, but specifying the latest version, i.e. [email protected]
  2. Try installing it, via npm i -g [email protected] (or if you don't want to do it locally, then as a dev dependency, i.e. npm i -D [email protected] and then run it locally i.e. same command as you used before but without npx at the start
  3. Pull down the JS file then run it via Node directly, from its directory, i.e. node cfimp <your args>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants