glideapps / glideapps/quicktype

Directory multiple file input src and multiple file out differences

Open
#2,491 1 comment 0 reactions 0 assignees View on GitHub
bug CLI
Dominant language
TypeScript
Stars
13.9k
Forks
1.2k
Avg merge
8h 53m
Merged PRs (30d)
369

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.