peterpeterparker / create-ic

A CLI for initializing projects with Juno or directing devs to the Internet Computer docs
MIT License
16 stars 2 forks source link

Invalid character(s): "-" #1

Closed nmattia closed 2 years ago

nmattia commented 2 years ago

I'm surprised I can't use a - character in my project name:

$ npm init ic
Need to install the following packages:
  create-ic
Ok to proceed? (y) y

create-ic version 0.1.3
✔ A new version of dfx (v0.10.1) was promoted.
  Do you want to upgrade now? … no
✔ What's the name of your project?
  (a new directory will be created) … test-foo
✔ What type of canister should be use in the starter project? › Rust
error: Invalid value "test-foo" for '<PROJECT_NAME>': Invalid character(s): "-"

For more information try --help
peterpeterparker commented 2 years ago

dfx does not support dash for project name 🤷‍♂️

Capture d’écran 2022-06-17 à 15 16 19