跳到主要内容

安裝與使用

安裝

方式一:從 Releases 下載預編譯二進制(推薦)

直接從 GitHub Releases 下載對應平台的已編譯好二進制文件,無需安裝編譯器。

五個獨立工具各自構建,可按需下載:

工具說明
notoolsUnix 常用命令行工具集(193 個命令)
nogit純 Nolang Git 實現(不依賴系統 git
noimg純 Nolang 圖像處理工具庫(9 種格式、55+ 種操作)
nouv純 Nolang Python 包管理器(兼容 uv/pip)
nonpm純 Nolang Node.js 包管理器(兼容 pnpm)

支持的平台:

平台notoolsnogitnoimgnouvnonpm
Linux amd64notools-linux-amd64nogit-linux-amd64noimg-linux-amd64nouv-linux-amd64nonpm-linux-amd64
Linux arm64notools-linux-arm64nogit-linux-arm64noimg-linux-arm64nouv-linux-arm64nonpm-linux-arm64
macOS amd64notools-darwin-amd64nogit-darwin-amd64noimg-darwin-amd64nouv-darwin-amd64nonpm-darwin-amd64
macOS arm64notools-darwin-arm64nogit-darwin-arm64noimg-darwin-arm64nouv-darwin-arm64nonpm-darwin-arm64
Windows amd64notools-windows-amd64.exenogit-windows-amd64.exenoimg-windows-amd64.exenouv-windows-amd64.exenonpm-windows-amd64.exe
Windows arm64notools-windows-arm64.exenogit-windows-arm64.exenoimg-windows-arm64.exenouv-windows-arm64.exenonpm-windows-arm64.exe
# Linux amd64 示例 — 按需安裝
# notools
curl -fsSL -o notools https://github.com/lizongying/notools/releases/latest/download/notools-linux-amd64
chmod +x notools && sudo mv notools /usr/local/bin/

# nogit
curl -fsSL -o nogit https://github.com/lizongying/notools/releases/latest/download/nogit-linux-amd64
chmod +x nogit && sudo mv nogit /usr/local/bin/

# noimg
curl -fsSL -o noimg https://github.com/lizongying/notools/releases/latest/download/noimg-linux-amd64
chmod +x noimg && sudo mv noimg /usr/local/bin/

# nouv
curl -fsSL -o nouv https://github.com/lizongying/notools/releases/latest/download/nouv-linux-amd64
chmod +x nouv && sudo mv nouv /usr/local/bin/

# nonpm
curl -fsSL -o nonpm https://github.com/lizongying/notools/releases/latest/download/nonpm-linux-amd64
chmod +x nonpm && sudo mv nonpm /usr/local/bin/

下載後可使用同目錄下的 checksums-sha256.txt 進行校驗。

方式二:從源碼構建

五個子項目各自獨立構建:

# 克隆項目
git clone git@github.com:lizongying/notools.git notools
cd notools

# 構建 notools(需先安裝 Nolang)
cd notools && no build && cd ..
cp notools/dist/notools /usr/local/bin/notools

# 構建 nogit
cd nogit && no build && cd ..
cp nogit/dist/nogit /usr/local/bin/nogit

# 構建 noimg
cd noimg && no build && cd ..
cp noimg/dist/noimg /usr/local/bin/noimg

# 構建 nouv
cd nouv && no build && cd ..
cp nouv/dist/nouv /usr/local/bin/nouv

# 構建 nonpm
cd nonpm && no build && cd ..
cp nonpm/dist/nonpm /usr/local/bin/nonpm

使用方式

通用格式

notools <command> [args]

管道示例

echo "hello world" | notools grep hello
notools cat file.txt | notools sort | notools uniq -c

查看幫助

notools

環境要求

  • Nolang 編譯器(僅從源碼構建時需要):從 Nolang Releases 下載安裝
  • 操作系統:Linux、macOS、Windows
  • 架構:amd64、arm64