boip
Version:
a command line application that creates a new project from a boilerplate stored on GitHub
54 lines (38 loc) • 907 B
Markdown
# 仕様書
1. `cmd new projectName`
2. githubリポジトリの指定`owner/repo`
3. download
4. 'glob'で全ファイルパスを取得
5. 全ファイルを走査して`expressions`を取得
6. promptで全ての`expressions`を埋める
7. 6で入力された値はconfに保存
8. temjectでinjectする
9. 保存
# 必要な関数
- pathを集める(4)
- expressionを集める(5)
```puml
@startuml
title cmd new (create new project)
#lightgreen:cmd new {projectname};
if (Is the new project name "foo"?) then (no)
:end;
end
else (yes)
#orange:Please enter github 'owner/repo';
repeat
#orange:Please enter inject key "xxx";
repeat while (next expression)
#orange:create project path -> "path/to/hoge"\nare you sure?;
split
:yes;
:do;
stop
split again
:no;
end
@enduml
```
## idea
- repoを保存するディレクトリを指定(confに入力)
✔ boip is available