cli icon indicating copy to clipboard operation
cli copied to clipboard

Add `asyncapi optimize` command

Open derberg opened this issue 3 years ago • 5 comments

This issue is for https://www.openforce.tech/ participants. If you do not participate in this even please pick up other issue from this repo, there is plenty of help needed 😄

Reason/Context

We need to enable the community to use all AsyncAPI tools in CLI if only possible -> https://github.com/asyncapi/optimizer

Description

  • add new command asyncapi optimize that uses https://github.com/asyncapi/optimizer and enable users to optimize single AsyncAPI file
  • user should be able to pass one files to the optimizer asyncapi optimize <context/filepath/url> (getting file from context or filepath or URL is already provided in CLI, you just use load function)
  • by default it would optimize the document and print to the terminal, but user should be able to specify to get only the report, with flag --report
  • by default full optimization is done, but user should be able to specify --rules where user can provide rules that should be applied by optimizer

This issue is for https://www.openforce.tech/ participants. If you do not participate in this even please pick up other issue from this repo, there is plenty of help needed 😄

@KhudaDad414 pinging you so you are aware 😄

derberg avatar Feb 08 '22 18:02 derberg

Hey @derberg , I am Ashish Tom, a contributor to OpenForce 2022. I would like to work on this issue. I would be making a PR as soon as I am done with resolving the issue. Thank you

alceil avatar Mar 06 '22 16:03 alceil

@alceil that's great. If you have any problems or questions regarding the tool itself, please do let me know.

KhudaDad414 avatar Mar 07 '22 05:03 KhudaDad414

Thanks @KhudaDad414

alceil avatar Mar 08 '22 16:03 alceil

Hey @KhudaDad414 I have raised a pull request. Could you please review it?

alceil avatar Mar 11 '22 04:03 alceil

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Jul 10 '22 00:07 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity :sleeping:

It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation.

There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model.

Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here.

Thank you for your patience :heart:

github-actions[bot] avatar Nov 26 '22 00:11 github-actions[bot]

:tada: This issue has been resolved in version 0.31.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

asyncapi-bot avatar Feb 09 '23 11:02 asyncapi-bot