Skip to content
folder-minus

GitHub Action

folder_mapping

v1 Latest version

folder_mapping

folder-minus

folder_mapping

Incorporate or update the folder mapping information in the README.md file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: folder_mapping

uses: RomanFama592/folder_mapping_action@v1

Learn more about this action in RomanFama592/folder_mapping_action

Choose a version

Folder Mapping

Contributions? Welcome Maintained? Yes Pylint readme_updated

This project is a CLI tool that maps the folder structure of a directory and generates an output file with a customizable name based on a template. The main purpose of this tool is to provide a clear and concise representation of the folder structure, taking into account exclusions defined in the .gitignore file to avoid displaying specific files. Skip the files until you find another .gitignore file. From that path onwards, exclude the files specified in this new file.

πŸ“‘ Contents
  1. πŸš€ Project Structure
  2. ✨ Usage
  3. πŸ‘‹ Contributions
  4. πŸ‘¨β€βš–οΈ License
  5. πŸ“¬ Contact me

Back to top πŸ”Ό


πŸš€ Project Structure

Folder map and example of use:

/
β”œβ”€β”€ .devcontainer/
β”‚     β”œβ”€β”€ Dockerfile
β”‚     └── devcontainer.json
β”œβ”€β”€ .github/
β”‚     └── workflows/
β”‚          β”œβ”€β”€ pylint.yml
β”‚          └── update_readme.yml
β”œβ”€β”€ src/
β”‚     β”œβ”€β”€ __init__.py
β”‚     β”œβ”€β”€ args.py
β”‚     β”œβ”€β”€ exceptions.py
β”‚     β”œβ”€β”€ map_folders.py
β”‚     └── short_folders.py
β”œβ”€β”€ .dockerignore
β”œβ”€β”€ .gitignore
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ LICENSE
β”œβ”€β”€ Pipfile
β”œβ”€β”€ Pipfile.lock
β”œβ”€β”€ README.md
β”œβ”€β”€ README.md.template
β”œβ”€β”€ action.yml
β”œβ”€β”€ index.py
└── requirements.txt

Back to top πŸ”Ό


✨ Usage

- uses: RomanFama592/folder_mapping_action@v1
  with:
    path-directory:
    description: "Path to the directory for folder mapping."
    default: "./"

    template-output:
    description: "Path to the template file for README.md generation."
    default: "./README.md.template"
    
    path-output:
    description: "Path where the generated README.md file will be saved."
    default: "./README.md"

    search-word:
    description: "Keyword or search term in the template file for folder mapping."
    default: "map_folder"

In your template put %{{ + your search word + }}% to find where you want to put the map folder.

Back to top πŸ”Ό


πŸ‘‹ Contributions

Contributions are what make the Open Source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a Pull Request. You can also simply open an issue

Don't forget to give the project a star ⭐! Thanks again!

  1. Fork the project

  2. Clone your fork

git clone https://github.com/@your_username/folder_mapping_action
  1. Install pipenv
pip install pipenv
  1. Install dependencies
pipenv install --dev
  1. Open enviroment of Python
pipenv shell
  1. Create your Feature Branch
git checkout -b feature/AmazingFeature
  1. Push to the Branch
git push origin feature/AmazingFeature
  1. Open a Pull Request

Important: Use "conventional commits" and ensure that the code passes the linter test, pull requests are not accepted without this last point.

Back to top πŸ”Ό


πŸ‘¨β€βš–οΈ License

Distributed under the MIT License. See LICENSE for more information.

Back to top πŸ”Ό


πŸ“¬ Contact me

FamΓ‘ RomΓ‘n

Back to top πŸ”Ό