DevStream
快速上手¶
安装¶
asdf plugin add dtm
asdf install dtm latest
asdf global dtm latest
自动补全
dtm completion zsh > $HOME/.oh-my-zsh/custom/dtm.zsh
示例¶
依赖 [[GitLab]]。
export GITLAB_TOKEN=Q8AyhiMk2KP4iGTMJ4CG
dtm init -f quickstart.yaml
dtm apply -f quickstart.yaml
开发¶
流程¶
仓库设置¶
git remote set-url --push upstream no_push
仓库同步¶
git fetch upstream
git checkout main
git rebase upstream/main
构建¶
make build -j8
插件¶
创建¶
dtm develop create-plugin --name=dummy
配置¶
dtm show config > config.yaml
剖析¶
源码¶
➜ devstream git:(main) ✗ cloc .
731 text files.
650 unique files.
143 files ignored.
github.com/AlDanial/cloc v 1.94 T=0.16 s (4176.3 files/s, 225377.5 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
Go 428 3559 1321 18725
Markdown 130 1984 0 4526
YAML 53 45 382 1475
HTML 1 181 0 910
HCL 20 112 13 773
Bourne Shell 9 82 33 366
CSS 1 9 5 166
XML 2 0 0 111
make 1 29 3 106
JavaScript 2 6 5 78
SVG 1 0 1 65
Text 1 0 0 4
JSON 1 0 0 3
-------------------------------------------------------------------------------
SUM: 650 6007 1763 27308
-------------------------------------------------------------------------------
资源¶
最后更新: September 10, 2023