just: 一个命令行工具 task-list
一个命令行 list 工具
🕐
安装
# mpb15
wget just-1.43.0-x86_64-apple-darwin.tar.gz
# 直接安装里面的 just 执行程序即可
cd just-1.43.0-x86_64-apple-darwin && ins just
# other
brew install just
# windows
1.下载这个 https://github.com/casey/just/releases/download/1.52.0/just-1.52.0-x86_64-pc-windows-msvc.zip
2. 找到 just 文件
3. 放到这个目录: %LOCALAPPDATA%\Microsoft\WindowsApps 即可
第一个 justfile
这个会将 “命令” + 命令执行结果
alias b := build
alias os := system-info
# default cmds
recipe-name:
echo 'This is a recipe!'
# 这是一行注释
another-recipe:
echo 'This is another recipe.'
# build stuff
build:
echo "build scripts"
system-info:
@echo "This is an {{arch()}} machine".常用 flag
| 命令 | 代码 |
|---|---|
| 列出所有命令 | |
| 隐藏命令本身输出 | |
| 设置别名 | |