LeHome Challenge CLI distributed via uv tool run
Project description
LeHome CLI
lehome 是一个面向 LeHome Challenge 的可分发 uv CLI。
它把 /root/data/lehome_cli 里的源脚本打包成 runtime bundle,在目标机器上自动解包到稳定目录,再提供:
- 一个超级菜单入口
- 原版
all.sh的直达入口 step1 / step2 / step3 / ai / git / diff / vpn这些老脚本的直达入口
用户用法
推荐直接运行:
uvx lehome
如果你想在 PyPI 发布前先从 GitHub 直接跑:
uvx --from git+https://github.com/sudo-yf/lehome.git lehome
常用命令:
uvx lehome --help
uvx lehome all --list
uvx lehome step1
uvx lehome step2
uvx lehome step3
uvx lehome ai
uvx lehome git 1
uvx lehome diff
uvx lehome vpn
uvx lehome doctor
uvx lehome version
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome --help
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome all --list
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome step1
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome step2
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome step3
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome ai
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome git 1
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome diff
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome vpn
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome doctor
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome version
如果你已经在本地 clone 了仓库,也可以这样调试:
uv tool run --from . lehome
环境变量
默认值:
DATA_ROOT=/root/dataLEHOME_REPO_URL=https://github.com/sudo-yf/lehome-challenge.gitLEHOME_DEFAULT_DIRNAME=lehome-challenge
示例:
DATA_ROOT=/tmp/lehome-data \
LEHOME_REPO_URL=https://github.com/sudo-yf/lehome-challenge.git \
uv tool run --from git+https://github.com/sudo-yf/lehome.git lehome doctor
维护说明
/root/data/lehome_cli 是源真相,/root/data/lehome 是分发仓库。
当源脚本更新后,在本仓库运行:
python tools/import_runtime.py --source /root/data/lehome_cli
这个脚本会:
- 校验源文件存在
- 复制到
src/lehome_cli/bundle/ - 生成
manifest.json
平台约束:
- 仅支持 Linux / Ubuntu / bash
- 不承诺 Windows / macOS 可用
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
lehome-0.2.2.tar.gz
(48.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lehome-0.2.2-py3-none-any.whl
(55.0 kB
view details)
File details
Details for the file lehome-0.2.2.tar.gz.
File metadata
- Download URL: lehome-0.2.2.tar.gz
- Upload date:
- Size: 48.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f65c6a71fa12f673aba92817842ef4e82427bb4a249f31ba7b183329dac20818
|
|
| MD5 |
825008d513db9a21a1c751f215ed6f14
|
|
| BLAKE2b-256 |
27cb22065db5e35048111f4fc5dc18bffd20c7ad6a659e7eaef432afbd93defc
|
File details
Details for the file lehome-0.2.2-py3-none-any.whl.
File metadata
- Download URL: lehome-0.2.2-py3-none-any.whl
- Upload date:
- Size: 55.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"22.04","id":"jammy","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6422a3340aa480bd914962949696aab559b3b261d7c343948ee257069b90f2e5
|
|
| MD5 |
450269b54a9bd1cd538b770c760eb281
|
|
| BLAKE2b-256 |
797b4c87abe956c04512c4a692d36a49374c1228ad208539ab557fb041e54cff
|