Repository navigation
feat: refactor CLI to be service based and initial migration of server-api - #1825
Conversation
Signed-off-by: Shurtu-gal <[email protected]>
Signed-off-by: Shurtu-gal <[email protected]>
Signed-off-by: Shurtu-gal <[email protected]>
Signed-off-by: Shurtu-gal <[email protected]>
🦋 Changeset detectedLatest commit: 4ac7c8a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Changeset has been generated for this PR as part of auto-changeset workflow.Please review the changeset before merging the PR.If you are a maintainer or the author of the PR, you can change the changeset by clicking here Tip If you don't want auto-changeset to run on this PR, you can add the label |
Signed-off-by: Ashish Padhy <[email protected]>
Signed-off-by: Ashish Padhy <[email protected]>
| asyncapi = `${asyncapi}+${proxyUrl}`; | ||
| } | ||
| const asyncapiInput = (await load(asyncapi)) || (await load()); | ||
|
|
||
| this.specFile = asyncapiInput; | ||
| this.metricsMetadata.template = template; | ||
|
|
||
| const watchTemplate = flags['watch']; | ||
| const genOption: any = {}; |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
| } | ||
|
|
||
| private disableHooksParser(inputs?: string[]) { |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
| if (!isURL.test(input.toLowerCase())) { | ||
| throw new Error( | ||
| 'Invalid --registry-url flag. The param requires a valid http/https url.', |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
| } catch (err: any) { | ||
| // intentional | ||
| } |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
| let optimizer: Optimizer; | ||
| let report: Report; | ||
| try { | ||
| optimizer = new Optimizer(this.specFile.text()); | ||
| report = await optimizer.getReport(); | ||
| } catch (err) { | ||
| this.error( | ||
| new ValidationError({ |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
| await (await this.recorder).flush(); | ||
| } catch (e: any) { | ||
| if (e instanceof Error) { |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
| } catch (e) { | ||
| // We did our best... | ||
| } |
Check notice
Code scanning / SonarCloud
Exceptions should not be ignored
Signed-off-by: Ashish Padhy <[email protected]>
Signed-off-by: Shurtu-gal <[email protected]>
Signed-off-by: Ashish Padhy <[email protected]>
Signed-off-by: Ashish Padhy <[email protected]>
|
@asyncapi/bounty_team |
Souvikns
left a comment
There was a problem hiding this comment.
what is happening inside domain folder, I see that the bundler controller is missing service why is that?
Both the command and controller functionality is a single liner: Hence I didn't feel the need to add another service for them. |
Souvikns
left a comment
There was a problem hiding this comment.
Looks good. I noticed you also updated the folder name we discussed in the meeting. When merging, please make sure to account for the other open PRs so there are no conflicts.
|
|
@Souvikns would require your approval again. Regarding the current open PRs all of them are pretty small. I can help out in resolving their conflicts. |
|
/rtm |



Description
start apicommand which is working perfectly fine, hence can still be used till I make another PR regarding its release process etc.Related issue(s)
Fixes #1793
Partial #1794