Skip to content

Refactor the CLI to be service based #1793

Closed

Description

@Shurtu-gal

Need to change the architecture of CLI so that the services can be reused across multiple clients.

Current proposed architecture (subject to change):

.
├── adapters
│   ├── api
│   │   ├── controllers
│   │   │   ├── generator.controller.ts
│   │   │   └── ping.controller.ts
│   │   └── core
│   │       ├── app.ts
│   │       ├── constants.ts
│   │       ├── exceptions
│   │       ├── interfaces.ts
│   │       ├── logs
│   │       ├── middlewares
│   │       └── server-api.d.ts
│   └── cli
│       ├── commands
│       │   ├── bundle.ts
│       │   ├── config
│       │   ├── convert.ts
│       │   ├── diff.ts
│       │   ├── generate
│       │   ├── new
│       │   ├── optimize.ts
│       │   ├── start
│       │   └── validate.ts
│       └── core
│           ├── base.ts
│           ├── flags
│           ├── global.d.ts
│           ├── globals.ts
│           ├── hooks
│           ├── models
│           └── parser.ts
├── api.ts
├── core
│   └── services
│       ├── archiver.service.ts
│       └── generator.service.ts
├── errors
│   ├── context-error.ts
│   ├── diff-error.ts
│   ├── generator-error.ts
│   ├── specification-file.ts
│   └── validation-error.ts
├── index.ts
├── logs
├── ports
│   └── generator.interface.ts
└── utils
    ├── ajv.ts
    ├── generator.ts
    ├── logger.ts
    └── temp-dir.ts

This Bounty Issue is inextricably linked with #1794 and cannot be completed separately from it.

Activity

  1. moved this from To Triage to In progress in CLI - Kanbanon Jun 9, 2025
  2. added theissue type on Jun 9, 2025
  3. Shurtu-gal commented on Jun 9, 2025

    @Shurtu-gal
    CollaboratorAuthor

    Wishing to work on this under the bounty program.

    PS: This Bounty Issue is inextricably linked with #1794 and cannot be completed separately from it.

  4. added
    bounty
    on Jun 16, 2025
  5. aeworxet commented on Jun 16, 2025

    @aeworxet
    Contributor

    Bounty Issue's service comment

    Text labels: bounty/2025-Q3, bounty/advanced, bounty/coding
    First assignment to regular contributors: 2025-06-20 00:00:00 UTC+12:00
    End Of Life after: 2025-07-31 23:59:59 UTC-12:00

    @asyncapi/bounty_team

    The Bounty Program is not a Mentorship Program. The accepted level of Bounty Program Participants is Middle/Senior.
    Regular contributors should explain in meaningful words how they are going to approach the resolution process when expressing a desire to work on this Bounty Issue.
  6. Shurtu-gal commented on Jun 17, 2025

    @Shurtu-gal
    CollaboratorAuthor

    Assigning to myself.

  7. self-assigned this
    on Jun 17, 2025
  8. aeworxet commented on Jun 17, 2025

    @aeworxet
    Contributor
  9. aeworxet commented on Jun 17, 2025

    @aeworxet
    Contributor

    Bounty Issue's Timeline

    Complexity Level Assignment Date (by GitHub) Start Date (by BP Rules) End Date (by BP Rules) Draft PR Submission Final PR Merge Start Final PR Merge End
    Advanced 2025-06-17 2025-07-07 2025-08-31 2025-07-27 2025-08-17 2025-08-31
    Please note that the dates given represent deadlines, not specific dates; so if the goal is reached sooner, it's better.
    Keep in mind the responsibility for violations of the Timeline.

    Assignee: @Shurtu-gal (githubID: 100484401)

  10. moved this to In Progress in Microgrant Programon Jun 17, 2025
  11. aeworxet commented on Aug 8, 2025

    @aeworxet
    Contributor

    AsyncAPI Maintainer (@Souvikns (githubID: 41781438)) delayed a response critical for the technical resolution of the Bounty Issue on GitHub for three periods of three consecutive working days
    #1825 (comment)
    #1825 (review)
    so all remaining target dates of the Bounty Issue's Timeline are extended by three calendar weeks.

    Bounty Issue's Timeline Extended

    Complexity Level Assignment Date (by GitHub) Start Date (by BP Rules) End Date (by BP Rules) Draft PR Submission Final PR Merge Start Final PR Merge End
    Advanced 2025-06-17 2025-07-07 2025-09-21 2025-08-17 2025-09-07 2025-09-21
    Please note that the dates given represent deadlines, not specific dates; so if the goal is reached sooner, it's better.
    Keep in mind the responsibility for violations of the Timeline.

    Assignee: @Shurtu-gal (githubID: 100484401)

  12. aeworxet commented on Aug 11, 2025

    @aeworxet
    Contributor

    @Souvikns (githubID: 41781438), please review the PR for the Bounty Issue, as per the comment.

  13. aeworxet commented on Aug 15, 2025

    @aeworxet
    Contributor

    AsyncAPI Maintainer (@Souvikns (githubID: 41781438)) has delayed a response that is critical for the technical resolution of the Bounty Issue on GitHub for two periods of three consecutive working days:
    #1825 (comment)
    #1825 (review)

    Therefore, all remaining target dates of the Bounty Issue's Timeline are extended by two calendar weeks.

    Bounty Issue's Timeline Extended

    Complexity Level Assignment Date (by GitHub) Start Date (by BP Rules) End Date (by BP Rules) Draft PR Submission Final PR Merge Start Final PR Merge End
    Advanced 2025-06-17 2025-07-07 2025-10-05 2025-08-31 2025-09-21 2025-10-05
    Please note that the dates given represent deadlines, not specific dates; so if the goal is reached sooner, it's better.
    Keep in mind the responsibility for violations of the Timeline.

    Assignee: @Shurtu-gal (githubID: 100484401)

  14. moved this from In progress to Done in CLI - Kanbanon Aug 19, 2025
  15. moved this from In Progress to Completed in Microgrant Programon Aug 19, 2025
  16. Shurtu-gal commented on Aug 19, 2025

    @Shurtu-gal
    CollaboratorAuthor

    @aeworxet this bounty can be marked as completed. The CLI has been refactored, and server-api has also been implemented. The other issue will take care of:

    • Testing of server-api
    • Deployment
    • Docker release (if possible)
  17. aeworxet commented on Aug 20, 2025

    @aeworxet
    Contributor

    Bounty Issue Is Completed 🎉

    @Shurtu-gal (githubID: 100484401), please go to the dedicated AsyncAPI Bounty Program 2025-Q3 page on Open Collective and submit an invoice for USD 400.00 (button 'ACTIONS', dropdown option 'Submit expense') with the expense title Bounty cli#1793, tag bounty, and full URL of this Bounty Issue in the description.

    After submitting the invoice, please post the link to it in this Bounty Issue as a separate comment to verify the invoice's authorship.

  18. aeworxet commented on Aug 20, 2025

    @aeworxet
    Contributor

    Shurtu-gal
    https://opencollective.com/asyncapi/projects/asyncapi-bounty-program/expenses/262304

    ✅
    The invoice https://opencollective.com/asyncapi/projects/asyncapi-bounty-program/expenses/262304 was submitted by @Shurtu-gal (githubID: 100484401), who was the AsyncAPI Bounty Program 2025-Q3 Participant and completed the Bounty Issue cli#1793.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bounty

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions