cli icon indicating copy to clipboard operation
cli copied to clipboard

feat: format command to convert asyncapi document to multiple format

Open catosaurusrex2003 opened this issue 1 year ago • 2 comments

Description Added a new format command. used js-yaml which was already a dependency.

-f flag defines the output format. if -o flag is provided writes output to a file, else logs in the console. image

Corner case checks image

Help image

Related issue(s) #1535

catosaurusrex2003 avatar Oct 19 '24 08:10 catosaurusrex2003

should the tests be included in this PR or i create another one after this is finalized.

Edit: I have added the tests also

catosaurusrex2003 avatar Oct 19 '24 08:10 catosaurusrex2003

@catosaurusrex2003 you have some lint issues, can you have a look.

Souvikns avatar Oct 26 '24 09:10 Souvikns

@Souvikns fixed

catosaurusrex2003 avatar Oct 26 '24 10:10 catosaurusrex2003

@Souvikns is something else required in this ?

catosaurusrex2003 avatar Nov 17 '24 18:11 catosaurusrex2003

/rtm

Souvikns avatar Nov 18 '24 04:11 Souvikns

:tada: This PR is included in version 2.10.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Nov 18 '24 04:11 asyncapi-bot