Skip to content

Dart CLI should check for valid project names #43216

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

Closed
mit-mit opened this issue Aug 27, 2020 · 1 comment
Closed

Dart CLI should check for valid project names #43216

mit-mit opened this issue Aug 27, 2020 · 1 comment
Assignees
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-create Issues related to the 'dart create' tool

Comments

@mit-mit
Copy link
Member

mit-mit commented Aug 27, 2020

No reason to fail here; could check that the passed arg is a valid identifier:

mit-macbookpro4:tmp mit$ dart create gumbo-dart
Creating /Users/mit/tmp/gumbo-dart using template console-simple...

  .gitignore
  CHANGELOG.md
  README.md
  analysis_options.yaml
  bin/gumbo-dart.dart
  pubspec.yaml

Running pub get...
Error on line 1, column 7 of pubspec.yaml: "name" field must be a valid Dart identifier.
  ╷
1 │ name: gumbo-dart
  │       ^^^^^^^^^^
  ╵
@mraleph mraleph added the area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. label Aug 27, 2020
@devoncarew
Copy link
Member

@bkonyi bkonyi added the dart-cli-create Issues related to the 'dart create' tool label Mar 18, 2021
@bkonyi bkonyi self-assigned this Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-dart-cli Use area-dart-cli for issues related to the 'dart' command like tool. dart-cli-create Issues related to the 'dart create' tool
Projects
None yet
Development

No branches or pull requests

4 participants