Skip to content

Yamayamaaya/Rel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rel

Description

rel is a tool designed to visualize directory structures and the relationships between specific subdirectories and files. It acts as a wrapper around the tree command, enhancing its functionality and user experience. Here’s how you can install and start using rel:

Installation

We recommend installing the rel CLI tool via Homebrew for easier management, updates, and removals. You can also install it directly using a script if you prefer. Here are the steps for both methods:

Recommended: Installation via Homebrew

  1. Tap the repository:

    brew tap Yamayamaaya/homebrew-rel
  2. tool:

    brew install rel

Installing via Homebrew allows for easier management of the rel tool as a Homebrew formula, enabling straightforward updates and removals using Homebrew commands.

Direct Installation

If you prefer not to use Homebrew, you can install the CLI tool directly using a script:

  1. Download and execute the installation script:

    curl -sSL https://raw.githubusercontent.com/Yamayamaaya/Rel/main/install.sh | zsh

    For bash users:

    curl -sSL https://raw.githubusercontent.com/Yamayamaaya/Rel/main/install.sh | bash

This command will download the install.sh script and execute it, downloading the actual CLI tool, making it executable, and moving it to a directory in your PATH, allowing you to run the tool from anywhere.

Usage

rel [-all] [-dir] <target1> <target2> ...
rel <GitHub_Repository_URL> [-all] [-dir] <target1> <target2> ...

Options:

  • -all : Display the entire directory tree.
  • -dir : Focus on directories; only specified files and directories will be displayed.

Arguments:

  • <GitHub_Repository_URL> : (Optional) The URL of a public GitHub repository to clone and visualize.
  • ... : Names of the files or directories to focus on. Both file and directory names can be specified.

Examples:

  1. Visualizing Specific Files and Directories in a Local Directory:

    rel fileA.js directoryA

    This command will display the directory structure, focusing on fileA.js and directoryA, marking them with <<-.

  2. Option:

    rel -dir directoryA fileB.html

    This command focuses on directoryA and fileB.html, displaying them along with their hierarchical structures.

  3. Option with Specific Files:

    rel -all fileC.txt

    This command displays the entire directory tree and marks fileC.txt with <<-.

  4. Cloning and Visualizing a GitHub Repository:

    rel https://github.com/user/repository -all

    This command clones the specified GitHub repository, displays its entire directory structure, and then removes the cloned repository.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Authors

Yamayamaaya ( yugo139013@gmail.com )

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages