Skip to content

Add identifier as a cli parameter #608

@tg44

Description

@tg44

extendable code in the codebase

my use-case

Some of the openapi docs uploaded to readme.io are not consumable by default. So it would be nice to download a json definition as is, and manually fix the problems, and regenerate them time-to-time supporting the dev process more.

what I tried

I wrote a command rimraf ./.api && npx api install -l ts ./files/fixed-opensea-api.json which is almost good. The problem with it that I need to type "opensea" every time I run this command.

expected behaviour

rimraf ./.api && npx api install -l ts -i opensea --install-missing ./files/fixed-opensea-api.json would generate the types without any user interactions.

Probably this part should be skipped too with a flag.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions