{"id":32806482,"url":"https://github.com/tc999/riptree","last_synced_at":"2026-05-06T00:31:52.233Z","repository":{"id":318845044,"uuid":"1073104979","full_name":"TC999/riptree","owner":"TC999","description":"Cross-platform Rust rewrite of the tree command","archived":false,"fork":false,"pushed_at":"2025-10-15T15:43:48.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-15T22:34:22.706Z","etag":null,"topics":["command-line","command-line-tool","cross-platform","i18n","linux","rewrite","rust","rust-lang","tools","tree","windows"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TC999.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-09T16:15:15.000Z","updated_at":"2025-10-15T15:43:52.000Z","dependencies_parsed_at":"2025-10-16T18:04:01.897Z","dependency_job_id":"39c69a3a-a3a2-4eb5-b3fc-0abdbacea978","html_url":"https://github.com/TC999/riptree","commit_stats":null,"previous_names":["tc999/riptree"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/TC999/riptree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TC999%2Friptree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TC999%2Friptree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TC999%2Friptree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TC999%2Friptree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TC999","download_url":"https://codeload.github.com/TC999/riptree/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TC999%2Friptree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":283019357,"owners_count":26765637,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-06T02:00:06.180Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","command-line-tool","cross-platform","i18n","linux","rewrite","rust","rust-lang","tools","tree","windows"],"created_at":"2025-11-06T14:01:07.516Z","updated_at":"2025-11-06T14:01:47.161Z","avatar_url":"https://github.com/TC999.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RipTree（RT）\n\n\u003e 原版 `tree` 项目地址：[https://github.com/Old-Man-Programmer/tree](https://github.com/Old-Man-Programmer/tree)\n\n本项目是对经典类 UNIX 命令 `tree` 的 Rust 语言重写版本。`tree` 是一个实用的小工具，可以在命令行下以树状结构显示目录内容，帮助用户快速了解文件夹的层次结构，尤其在排查隐藏文件或复杂目录时非常方便。\n\n## 项目背景\n\n原版 `tree` 命令由 Steve Baker 等众多贡献者开发和维护，支持多平台，功能丰富，包括彩色显示、HTML/JSON/XML 输出、符号链接处理、模式过滤等。Rust 版本旨在继承这些优秀特性，同时利用 Rust 的安全性和现代工具链优势，提升性能与可维护性。\n\n## 功能特性\n\n- 支持树状结构显示文件和子目录\n- 兼容原版 `tree` 的大部分命令行选项\n- 更高性能，内存安全\n- 跨平台支持（Linux/macOS/Windows）\n\u003c!-- 彩色输出（支持`CLICOLOR`、`NO_COLOR`等环境变量）\n- 递归符号链接跟踪\n- 文件/目录过滤与排序\n- 支持 JSON/HTML 等格式输出（计划/进行中）--\u003e\n\n## 安装方法\n\n\u003c!-- 请参考 [INSTALL.md](./INSTALL.md) 文件获取详细安装说明。使用 Rust 工具链，您可以通过 `cargo install rust-tree` 命令快速安装（待 crates.io 发布后）。--\u003e\n拉取项目代码：\n\n```bash\ngit clone https://github.com/tc999/riptree.git\ncd riptree\n```\n\n### 编译：\n\n```bash\ncargo build --release\n```\n\n### 安装：\n- Windows: \n\n  把 `target/release/rt.exe` 和 `target/release/locales` 目录复制到系统 PATH 中包含的相同目录下。\n\n- Linux:\n\n```bash\nsudo mkdir -p /opt/rt\nsudo cp target/release/rt /opt/rt/rt\nsudo cp -r target/release/locales /opt/rt/locales\nsudo ln -s /opt/rt/rt /usr/local/bin/rt\n```\n\n## 使用方法\n\n命令格式：\n```bash\nrt [选项] [目录路径（可选）]\n```\n### 国际化\n\n- 支持多语言输出，默认根据系统环境变量 `LANG` 自动检测语言。\n- Windows 如何设置默认显示语言：新建一个系统环境变量 `LANG`，值为 `zh-CN.UTF-8`。\n\n常用参数举例：\n\n\u003c!-- - `-L \u003c层数\u003e` 限制显示层级深度 --\u003e\n- `-a` 显示所有文件（包括隐藏文件）\n\u003c!-- - `-C` 强制彩色显示\n- `-P \u003c模式\u003e` 只显示匹配模式的文件 --\u003e\n- `-d` 仅显示目录\n- `--LANG=\u003c语言\u003e` 设置输出语言\n- 更多参数请使用 `rt --help` 查看\n\n## 致谢\n\n本项目参考并致敬原版 [`tree`](https://github.com/Old-Man-Programmer/tree) 的设计与众多贡献者，感谢 Steve Baker 及所有为 `tree` 命令做出贡献的人。Rust 版本将持续改进，欢迎大家提交 issue 和 PR，提出建议与反馈。\n\n## 许可协议\n\n本项目使用 GPL-3.0 协议开源，您可以在遵守协议条款的前提下自由使用、修改和分发本项目的代码。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftc999%2Friptree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftc999%2Friptree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftc999%2Friptree/lists"}