Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jjotaum/swiftytree
A command line tool to generate Tree structure from a given directory path
https://github.com/jjotaum/swiftytree
command-line-tool generator macos swift tree-structure
Last synced: about 2 months ago
JSON representation
A command line tool to generate Tree structure from a given directory path
- Host: GitHub
- URL: https://github.com/jjotaum/swiftytree
- Owner: jjotaum
- License: mit
- Created: 2023-11-11T15:17:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-13T13:14:11.000Z (about 1 year ago)
- Last Synced: 2024-11-11T15:44:28.251Z (about 2 months ago)
- Topics: command-line-tool, generator, macos, swift, tree-structure
- Language: Swift
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwiftyTree
A command like tool to generate Tree representation from a given directory path### Installation
Clone SwiftyTree on your machine:
```
$ git clone https://github.com/jjotaum/SwiftyTree.git
```
Navigate to it's directory:```
$ cd SwiftyTree
```Execute install script
```
$ ./install.sh
```
SwiftyTree should now be installed on /usr/local/bin and can be accessed via terminal.
```
$ swifty-tree
```### Usage
```
$ swifty-tree --helpUSAGE: swifty-tree [--path ] [--depth ] [--hidden ]
OPTIONS:
-p, --path The directory path
-d, --depth The depth of the generated tree (default: 100)
-h, --hidden Defines if generated tree includes hidden files.
(default: false)
-h, --help Show help information.
```### Output Example
```
├── LICENSE
├── install.sh
├── Tests
│ ├── SwiftyTreeTests
│ │ └── SwiftyTreeTests.swift
├── README.md
├── Package.resolved
├── Package.swift
├── Sources
│ ├── SwiftyTree
│ │ ├── TreeGenerator.swift
│ │ ├── SwiftyTree.swift
│ │ └── main.swift
```