asyncapi / asyncapi/cli

[BUG] UnparsedCommand warnings in test logs for versions and convert commands

Open
#2,021 4 comments 0 reactions 0 assignees View on GitHub
bug stale
Dominant language
TypeScript
Stars
272
Forks
375
Avg merge
3h 22m
Merged PRs (30d)
8

Description

### Describe the bug.

When running npm run cli:test, the logs show [UnparsedCommand] Warning for the config:versions and convert commands.

### Expected behavior

Commands should parse arguments correctly to avoid console warnings during tests.

### Screenshots

N/A - See logs provided above.

### How to Reproduce

Run `npm run cli:test` and observe the output.

### 🖥️ Device Information [optional]

_No response_

### 👀 Have you checked for similar open issues?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/asyncapi/.github/blob/master/CONTRIBUTING.md)

### Are you willing to work on this issue ?

Yes I am willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by running `npm run cli:test` and inspect the implementation and tests for the `config:versions` and `convert` commands, focusing on where their arguments are parsed. Done means both commands parse correctly and the test logs no longer contain `[UnparsedCommand]` warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.