Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] File name is not captured while creating new asyncapi.yml from using new command #1408

Closed
2 tasks done
AayushSaini101 opened this issue May 3, 2024 · 2 comments
Closed
2 tasks done
Labels
bug Something isn't working

Comments

@AayushSaini101
Copy link
Contributor

Describe the bug.

  • After running following command:
    asyncapi new --example=tutorial.yml --no-tty
  • Getting following output:
    Created file asyncapi.yaml...

Expected behavior

The file name should be tutorial.yml

Screenshots

image

How to Reproduce

  • Use the latest version of CLI
  • Run the following command:
    asyncapi new --example=tutorial.yml --no-tty

🥦 Browser

None

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

@AayushSaini101 AayushSaini101 added the bug Something isn't working label May 3, 2024
@github-project-automation github-project-automation bot moved this to Backlog in CLI - Kanban May 3, 2024
@github-project-automation github-project-automation bot moved this from Backlog to Done in CLI - Kanban May 3, 2024
@AayushSaini101
Copy link
Contributor Author

AayushSaini101 commented May 3, 2024

This is not an issue, i checked from the doc, i guess it would be good if we edit the doc here it is seems to confusing.

You can create a new asyncapi.yaml document by running: asyncapi new --example=tutorial.yml --no-tty.

This should be:
asyncapi new --file-name=asyncapi.yml --no-tty

Reference: https://www.asyncapi.com/docs/tutorials/create-asyncapi-document

@AayushSaini101 AayushSaini101 reopened this May 3, 2024
@github-project-automation github-project-automation bot moved this from Done to Ready in CLI - Kanban May 3, 2024
@Amzani
Copy link
Collaborator

Amzani commented May 3, 2024

@AayushSaini101 the documentation looks correct as --example is used for template selection, you can check asyncapi new --help

@github-project-automation github-project-automation bot moved this from Ready to Done in CLI - Kanban May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants