方便地打印和分析树结构



如何使用 🌳

🎬 演示: #4

输入

命令帮助 (Terminal CLI)

> xtree --help

 🌳 Printing and analyzing trees in a handy way.
╭─────────────┬────────────────────────────────────────────────────────────╮
│ > print     │ * Print a tree with children statistics.                   │
│ > frequency │ * Calculate a frequency of each node.                      │
│ > parents   │ * Find all parents of nodes.                               │
│ > impact    │ * Find affected parent nodes and print them out as a tree. │
│ > update    │ * Download and install the latest version.                 │
│             │                                                            │
│ --version   │ * Show the version.                                        │
│ --help, -h  │ * Show help information.                                   │
╰─────────────┴────────────────────────────────────────────────────────────╯

如何安装 📦

Terminal CLI

为了简化起见,您不需要安装包管理器。
只需运行下面提供的简短脚本,它将把 xtree 安装到您的 $HOME/.local/bin 目录中。

curl -Ls https://swiftyfinch.github.io/xtree/install.sh | bash

如果您已经安装了一个版本,您可以使用此命令更新它

xtree update

应用程序 (macOS)

要求: macOS Ventura 13.0 及以上。
使用 Homebrew 以及下面提供的命令

brew tap swiftyfinch/xtree https://github.com/swiftyfinch/xtree.git
brew install --cask xtree --no-quarantine

如果您已经安装了一个版本,您可以使用此命令更新它

brew update && brew upgrade --cask xtree

🤝 贡献

欢迎提交 pull request或发起讨论。

📮 支持

如果您想支持这个项目,您可以做以下几件事
1) 按下 ⭐️。这是一个很好的标志,表示它很有用;
2) 分享 这个项目 🌍 给某人;
3) 留下反馈 在讨论区 💬。