Closed sml86 closed 1 year ago
In this case a single quotation mark seems to be missing at the end.
> typeconv -f ts -t oapi -o docs './src/**/*.ts
However, something similar happens to me:
npx typeconv -f ts -t oapi -o spec 'src/api/**/*.d.ts'
💡 Converted 0 types in 0 files, in 0.0s
npx typeconv -f ts -t oapi -o spec './src/api/**/*.d.ts'
💡 Converted 0 types in 0 files, in 0.0s
It works when I do not use single quotes or use double quotes:
npx typeconv -f ts -t oapi -o spec "src/api/**/*.d.ts"
💡 Converted 38 types in 6 files, in 0.1s
npx typeconv -f ts -t oapi -o spec src/api/**/*.d.ts
💡 Converted 38 types in 6 files, in 0.1s
What OS and shell are you using?
I assume most users are either on MacOS or some Linux, in which case they probably use bash or zsh, where single quotes work as expected. On other shells, you might need other escaping. The point is to provide a string which the shell does not expand itself, but instead allow typeconv to do it.
I'm using Window 10 x64
, but I really don't find it a problem to have to use double quotes. I think this issue could be closed perfectly well.
Thank you, used also Windows 10. Did not check with double quotes already but I'm sure, that it will work. As issue opener, I close it. Thanks again.