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

feat: adding default file extension for users #117

Merged
merged 4 commits into from
Nov 10, 2021

Conversation

boyney123
Copy link
Contributor

Description

When user uses the new command they are asked for the filename.

If the user does not provide a file extension the file is created.

This PR will check to see if any file extension has been made, and will add .yaml onto the filename if no extension has been provided.

Why

Just think it's a slightly better developer experience than allowing them to have files without extensions as async API files.

Related issue #114

src/commands/new.ts Outdated Show resolved Hide resolved
boyney123 and others added 2 commits November 5, 2021 07:57
Co-authored-by: Fran Méndez <fmvilas@gmail.com>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@boyney123
Copy link
Contributor Author

Thanks for the review @fmvilas , if you are cool @Souvikns maybe it's good to go?

@Souvikns
Copy link
Member

Yeah I think this is good to go, I am merging it.

@Souvikns Souvikns merged commit fc05287 into asyncapi:master Nov 10, 2021
@boyney123 boyney123 deleted the default-extension-for-file branch November 10, 2021 14:09
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants