asyncapi/cli

Migrate to @oclif/core V3

Amzani opened this issue · 0 comments

Why do we need this improvement?

We need @oclif/core V3 instead of V1:

  • To enable the new Architecture #1200 and more specifically be able to use, this kind of configuration
{
  "oclif": {
    "commands": {
      "strategy": "pattern",
      "target": "./dist/commands",
      "globPatterns": [
         "**/*.+(js|cjs|mjs|ts|tsx|mts|cts)",
        "!**/*.+(d.*|test.*|spec.*|helpers.*)?(x)"
      ]
    }
  }
}
  • At some point V1 will be deprecated by @oclif

How will this change help?

This will enable us to have something like

Example for generate

.
└── generate
    ├── fromTemplate
    │   ├── fromTemplate.test.ts
    │   └── fromTemplate.ts
    ├── index.ts
    └── models
        ├── models.test.ts
        └── models.ts

Thanks to this, we will be able to have an easy CODEOWNER file

Screenshots

No response

How could it be implemented/designed?

🚧 Breaking changes

No

👀 Have you checked for similar open issues?

  • I checked and didn't find a similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue?

Yes I am willing to submit a PR!