treasure-data / digdag

Workload Automation System
https://www.digdag.io/
Apache License 2.0
1.3k stars 221 forks source link

digdag init check numeric verification. #129

Closed hiroyuki-sato closed 8 years ago

hiroyuki-sato commented 8 years ago

Please add validation digdag init when project name start with a numeric.

digdag init 01_hoge
2016-06-17 22:25:01 +0900: Digdag v0.8.1
  Creating 01_hoge/.gitignore
  Creating 01_hoge/tasks/shell_sample.sh
  Creating 01_hoge/tasks/repeat_hello.sh
  Creating 01_hoge/tasks/__init__.py
  Creating 01_hoge/01_hoge.dig
Done. Type `cd 01_hoge` and then `digdag run 01_hoge.dig` to run the workflow. Enjoy!
cd 01_hoge/
digdag run 01_hoge.dig
2016-06-17 22:25:16 +0900: Digdag v0.8.1
error: Validating project failed
workflow /private/tmp/01_hoge/01_hoge.dig Validating workflow failed
name can't start with a numeric digit (0-9): "01_hoge"
frsyuki commented 8 years ago

Good point. Will fix.

hiroyuki-sato commented 8 years ago

Thanks!