Code Monkey home page Code Monkey logo

cptree's Introduction

CP Tree

CP Tree is a command-line tool to generate a directory tree diagram.

Run the App

To run CP Tree, you need to download the source code. Then open a terminal or command-line window and run the following steps:

  1. Create and activate a Python virtual environment.
$ cd rptree_project/
$ python -m venv ./venv
$ source venv/bin/activate
(venv) $
  1. Run the application.
(venv) $ python tree.py /path/to/directory/

Note: The -h or --help option provides help on how to use RP Tree.

To take a quick test on RP Tree, you can use the sample home/ directory provided along with the application's code and run the following command:

(venv) $ python tree.py ../hello/
../hello/
│
├── hello/
│   ├── __init__.py
│   └── hello.py
│
├── tests/
│   └── test_hello.py
│
├── requirements.txt
├── setup.py
├── README.md
└── LICENSE

That's it! You've generated a nice directory tree diagram.

Current Features

If you run RP Tree with a directory path as an argument, then you get the full directory tree printed on your screen. The default input directory is your current directory.

RP Tree also provides the following options:

  • -v, --version shows the application version and exits
  • -h, --help shows a usage message
  • -d, --dir-only generates a directory-only tree
  • -o, --output-file generates a tree and save it to a file in markdown format

Release History

  • 0.1.0
    • A work in progress

About the Author

Leodanis Pozo Ramos - Email: [email protected]

cptree's People

Contributors

justintimefordinner avatar

Watchers

 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.