这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@felangel
Copy link
Contributor

Description

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel added the feature A new feature or request label Mar 17, 2022
@felangel felangel self-assigned this Mar 17, 2022
@felangel felangel marked this pull request as ready for review March 17, 2022 20:24
@felangel felangel requested a review from jorgecoca as a code owner March 17, 2022 20:24
@felangel felangel requested a review from erickzanardo March 17, 2022 20:25
Copy link
Member

@erickzanardo erickzanardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question, but LGTM already

final targetPath = path.normalize(Directory.current.absolute.path);
final pubspec = File(path.join(targetPath, 'pubspec.yaml'));

if (!pubspec.existsSync()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I m curious why moving this up and not using the exception anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to catch this error before running the pre gen hook since it would fail if a pubspec didn't exist.

@felangel felangel merged commit 8decea0 into main Mar 17, 2022
@felangel felangel deleted the feat/performance branch March 17, 2022 20:34
@felangel felangel mentioned this pull request Mar 17, 2022
7 tasks
ahsanf pushed a commit to Arkabyte-Teknologi/very_good_cli that referenced this pull request Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants