5 个版本
0.1.5 | 2023年12月14日 |
---|---|
0.1.4 | 2023年7月2日 |
0.1.2 | 2023年6月25日 |
#727 in 开发工具
每月 27 次下载
3MB
406 代码行
包含 (ELF 可执行文件/库, 5.5MB) shivr-Linux-x86/shivr, (Mach-o 可执行文件, 1.5MB) shivr-macOS-x86/shivr
shivr
单仓库的轻量级命令运行器。只对定义根分支的更改包运行命令
演示
安装
安装脚本
在此处查看脚本
# Non root user, can only download
$ curl https://raw.githubusercontent.com/xtenduke/shivr/main/download.sh | bash
# Root user, can download and install to /usr/local/bin
$ curl https://raw.githubusercontent.com/xtenduke/shivr/main/download.sh | sudo bash
从 cargo
$ cargo install shivr
用法
Usage: shivr [--detect-changes] [--main-branch <main-branch>] [--root-dir <root-dir>] [--package-dir <package-dir>] --command <command> [--concurrency <concurrency>]
Arguments
Options:
--detect-changes if shiv should run the command on all packages, or just
those changed against main
--main-branch main branch name, default "main"
--root-dir root dir to run in
--package-dir package directory, default "packages"
--command command to run on packages
--concurrency max number of threads to run, default 1
--help display usage information
示例
$ shivr --detect-changes --command build
需要配置配置文件
配置文件应配置在所有包目录中,映射命令到包脚本。命名为 shiv.json
{
"scripts": [
{
"name": "build",
"run": "yarn build"
}
]
}
开发
测试
setup_test.sh
需要在运行 cargo test
之前运行
依赖项
~11MB
~274K SLoC