Skip to content

swiftyfinch/xtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

63 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


Printing and analyzing trees in a handy way


Motivation

Sometimes,ย we need toย analyzeย different treeย structuresย for researchย purposes.
Usually,ย Iย wouldย write someย simpleย scripts toย accomplishย these goals.
However,ย afterย thinking about it,ย I decided toย createย a smallย utility withย a setย of useful commands.
And I am sharing it with you right here.


How to use ๐ŸŒณ

Right now, it supports the following inputs:

๐Ÿ“– Commands Help
> 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.                                   โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

How to install ๐Ÿ“ฆ

Terminal CLI

For simplicity, you don't need to install a package manager.
Just run the short script provided below and it will install xtree in your $HOME/.local/bin directory.

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

If you already have an installed one, you can update it with this command:

xtree update

Application (macOS)

Use Homebrew and commands provided below:

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

If you already have an installed one, you can update it with this command:

brew update && brew upgrade --cask xtree

๐Ÿค Contribution

Feel free to open a pull request or a discussion.

๐Ÿ“ฎ Support

If you want to support this project, you can do some of these:
1) Press โญ๏ธ. It's a nice mark which means that it is useful;
2) Share the project ๐ŸŒ somewhere with somebody;
3) Leave feedback in the discussions ๐Ÿ’ฌ section.