Giter Site home page Giter Site logo

homebrew-structy's Introduction

๐ŸŒฑ Structy

Structy is a command-line tool designed to simplify the exploration and visualization of folder structures in your projects. It provides an easy way to view the hierarchy of directories and files, making it convenient for developers to understand the layout of their projects, share layouts with other developers, and explain file hierarchies to LLMs when debugging code. Folder structure is printed to the console and copied to the clipboard with one command.

๐Ÿฅ” Installation

To install Structy, use Homebrew, the package manager for macOS:

Tap the Homebrew repository

brew tap sahasramesh/structy

Install the structy CLI using Homebrew

brew install structycli

Navigate to the directory where structycli.js is installed

cd /opt/homebrew/Cellar/structycli/1.0.0/bin/

Install missing dependencies

npm i commander

You can now run structy from any folder

structycli.js

Here's the output when structy is run on this repository:

structy-formula/
โ”œโ”€โ”€ .git/
โ”‚   โ”œโ”€โ”€ COMMIT_EDITMSG
โ”‚   โ”œโ”€โ”€ HEAD
โ”‚   โ”œโ”€โ”€ config
โ”‚   โ”œโ”€โ”€ description
โ”‚   โ”œโ”€โ”€ hooks/
โ”‚   โ”‚   โ”œโ”€โ”€ applypatch-msg.sample
โ”‚   โ”‚   โ”œโ”€โ”€ commit-msg.sample
โ”‚   โ”‚   โ”œโ”€โ”€ fsmonitor-watchman.sample
โ”‚   โ”‚   โ”œโ”€โ”€ post-update.sample
โ”‚   โ”‚   โ”œโ”€โ”€ pre-applypatch.sample
โ”‚   โ”‚   โ”œโ”€โ”€ pre-commit.sample
โ”‚   โ”‚   โ”œโ”€โ”€ pre-merge-commit.sample
โ”‚   โ”‚   โ”œโ”€โ”€ pre-push.sample
โ”‚   โ”‚   โ”œโ”€โ”€ pre-rebase.sample
โ”‚   โ”‚   โ”œโ”€โ”€ pre-receive.sample
โ”‚   โ”‚   โ”œโ”€โ”€ prepare-commit-msg.sample
โ”‚   โ”‚   โ”œโ”€โ”€ push-to-checkout.sample
โ”‚   โ”‚   โ”œโ”€โ”€ update.sample
โ”‚   โ”œโ”€โ”€ index
โ”‚   โ”œโ”€โ”€ info/
โ”‚   โ”‚   โ”œโ”€โ”€ exclude
โ”‚   โ”œโ”€โ”€ logs/
โ”‚   โ”‚   โ”œโ”€โ”€ HEAD
โ”‚   โ”‚   โ”œโ”€โ”€ refs/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ heads/
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ master
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ remotes/
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ origin/
โ”‚   โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ master
โ”‚   โ”œโ”€โ”€ objects/
โ”‚   โ”‚   โ”œโ”€โ”€ 00/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 509b272856a20a8ec9b86da4c5157d514a83a2
โ”‚   โ”‚   โ”œโ”€โ”€ 0e/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 7d1e5207555388b49ab2c869c493e6282e0227
โ”‚   โ”‚   โ”œโ”€โ”€ 12/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ edaf1ff8f710cead4799895b88b9d53d4bef79
โ”‚   โ”‚   โ”œโ”€โ”€ 19/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 779743c942a28c09a6001a326cc255b6f98f6e
โ”‚   โ”‚   โ”œโ”€โ”€ 1a/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ f83f5dda66f20529193a221fa366c27fc5bad4
โ”‚   โ”‚   โ”œโ”€โ”€ 23/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 413f3888052bd3e2c82296d5f3cb6ba4ef76a4
โ”‚   โ”‚   โ”œโ”€โ”€ 29/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ c56b365137886d34665be02b8b08a1e3a4acaf
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ e153d1fe5be5a4cc08fe86981f99590aca82c5
โ”‚   โ”‚   โ”œโ”€โ”€ 34/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 7279af8ae7aec3198338543c883ad29f0c615b
โ”‚   โ”‚   โ”œโ”€โ”€ 36/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ b2f7d908f4fae8cd378f5742b8709d4ecfbebf
โ”‚   โ”‚   โ”œโ”€โ”€ 5f/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ f1d278f6f17751241ea245e5714b1e94e40291
โ”‚   โ”‚   โ”œโ”€โ”€ 71/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 2193edbfad8bc3823fb14dea23780d6003e142
โ”‚   โ”‚   โ”œโ”€โ”€ 78/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ f8504ef9179689266a64f99230481dbe4c4b05
โ”‚   โ”‚   โ”œโ”€โ”€ 81/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 188b16e5a74265c645074255aebc03d41c0033
โ”‚   โ”‚   โ”œโ”€โ”€ 90/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 28d5b3a549fb026211a37b35eec8f6cb9efdcb
โ”‚   โ”‚   โ”œโ”€โ”€ c5/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 4f686d9574664ffb7eaa10c6442eb933e73075
โ”‚   โ”‚   โ”œโ”€โ”€ d0/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 7ab97fb27a01cc27a1546911113259e8f378fa
โ”‚   โ”‚   โ”œโ”€โ”€ f0/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 0e0a6cb3212fc03a37227edd5ce359689290d0
โ”‚   โ”‚   โ”œโ”€โ”€ f4/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 1ae71f38d7aa6e919c6141bfd922fd582f2478
โ”‚   โ”‚   โ”œโ”€โ”€ fa/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ 0ec1b09578f4dea260611f00e23f0b4cffe338
โ”‚   โ”‚   โ”œโ”€โ”€ info/
โ”‚   โ”‚   โ”œโ”€โ”€ pack/
โ”‚   โ”œโ”€โ”€ refs/
โ”‚   โ”‚   โ”œโ”€โ”€ heads/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ master
โ”‚   โ”‚   โ”œโ”€โ”€ remotes/
โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ origin/
โ”‚   โ”‚   โ”‚   โ”‚   โ”œโ”€โ”€ master
โ”‚   โ”‚   โ”œโ”€โ”€ tags/
โ”œโ”€โ”€ Formula/
โ”‚   โ”œโ”€โ”€ structycli.rb
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ node_modules/
โ”œโ”€โ”€ package-lock.json
โ”œโ”€โ”€ package.json

homebrew-structy's People

Stargazers

mattvr avatar  avatar Juan David Campolargo avatar

Watchers

Sahas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.