refactor: 迁移至 bashly CLI 与功能域模块结构
- CLI 定义迁移至 src/bashly.yml(bashly 1.4 生成参数解析),入口收敛为 src/root_command.sh - 源码按功能域重组:config/storage/integrate/media/pipeline,消除扁平散落 - 新增零依赖测试框架 tests/(123 用例)与 CI 流水线(lint + test + build + 产物一致性) - build.sh 支持版本单一来源注入与 --check 产物校验;新增 lint.sh(bash -n + shellcheck 零容忍) - 删除旧单文件 media_organizer.sh 与旧扁平模块
This commit is contained in:
1 parent
d978a13a83
commit
0df07ad0ae
48 files changed
+5813
-6812
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# ============================================================================
|
||||
# 任务统一入口
|
||||
#
|
||||
# make build 构建分发脚本 dist/media_organizer(bashly generate)
|
||||
# make test 运行单元测试
|
||||
# make lint ShellCheck + bash -n 静态检查
|
||||
# make check lint + test + 产物一致性(可接 CI)
|
||||
# make clean 删除构建产物
|
||||
#
|
||||
# 直接调用底层脚本亦可(./build.sh、./tests/run.sh、./lint.sh)。
|
||||
# ============================================================================
|
||||
.PHONY: build test lint check clean
|
||||
|
||||
build:
|
||||
./build.sh
|
||||
|
||||
test:
|
||||
./tests/run.sh
|
||||
|
||||
lint:
|
||||
./lint.sh
|
||||
|
||||
check: lint test
|
||||
./build.sh --check
|
||||
|
||||
clean:
|
||||
rm -f dist/media_organizer
|
||||
Reference in new issue
Block a user