google / google/wireit

Is there a way to pass extra arguments to the command in a key/value array?

Open
#767 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
6.4k
Forks
128
Avg merge
4d 10h
Merged PRs (30d)
4

Description

Hi there, love the tool so far,

my edge case is

```
"openapi-generator:generate": {
"command": "yarn openapi-generator-cli generate --global-property models --global-property supportingFiles=models.ts --additional-properties=enumPropertyNaming=UPPERCASE --additional-properties=useTags=true -g typescript-node -i backend-for-frontend.yaml -t .openapi-generator/typescript-node -o src/main/ts/generated --enable-post-process-file --inline-schema-name-mappings findInfosDetails_200_response=IndexData,findLogs_200_response=LogsData,findInfosSummary_200_response=SummaryData"
},
```

looking into breaking that down I would consider something like this:

```
"command-args": [['global-property':'...'], ['o', 'src/main/ts/generated']
```

there I mixed `--` and `-` maybe they need to separated.

Is there something like this? If not would that be interesting for the project?

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.