quicktype icon indicating copy to clipboard operation
quicktype copied to clipboard

Directory multiple file input src and multiple file out differences

Open kmturley opened this issue 1 year ago • 0 comments

These commands all generate different results

quicktype --src ./src/*.ts --lang java --out ./dist
quicktype --src ./src/*.ts --lang java --out ./dist/*
quicktype --src ./src/*.ts --lang java --out ./dist/library
quicktype --src ./src/*.ts --lang java --out ./dist/library/*
quicktype --src ./src/*.ts --lang ts --out ./dist/*
quicktype --src ./src/*.ts --lang ts --out ./dist/index.ts

Differences:

  1. Without /* files are outputted in the parent directory.
  2. Sub-directories are not created automatically e.g. library
  3. Using --package com.app with Java does not generate the java directory structure
  4. --lang java can generate multiple separate files, but --lang ts does not work, only can do a single file

Wondering if these are bugs or intended functionality? If intended functionality, could this be documented?

kmturley avatar Feb 12 '24 23:02 kmturley