Coder Social home page Coder Social logo

greadr's Introduction

GReadr - Git Readme Builder

By Owen Steele 2021

GReadr is designed to help map out and visual project repo directories, for both the makers and visitors!

GReader is built in Go and Powershell

Sample product below:

GReadr Dir Tree

ROOT_FOLDER

| greadr.json
| greadr.ps1
| greadrsetup.exe
| \---greadr
| \---v16
+---commands
| | greadr-help.ps1
| | greadr-info.ps1
| +---app
| | remove-greadr-alias.ps1
| | set-greadr-alias.ps1
| | set-up-greadr.ps1
| | uninstall-greadr.ps1
| +---common
| | confirm-file-exists.ps1
| +---git
| | update-git-ignore.ps1
| +---goCommands
| | invoke-readme-tree.ps1
| \---output
| write-data-files.ps1
| write-json-files.ps1
+---go
| ReadmeTree.go
+---greadr
| after.md
| before.md
\---templates
default.json
jupyter.json
text.json

Installing and Setup

greadrsetup.exe

  • Open the app and setup
    • Installs Go Lang Compiler if needed
    • Creates required config files
    • Adds GReadr to powershell profile

The installer is large ~80MB

Use file size filter to clone without the installer (see manual installation):

 > git clone --filter=blob:limit=50m https://github.com/OwenSteele/greadr

Manual installation

Simply clone or download the Zip to any folder to get started.

  • In powershell, navigate to the root folder and type:
 > ./greadr.ps1 --setup 
  • Go Lang compiler is required, setup will help with it's installation https://golang.org/doc/install
  • Once set up, greadr should be usable in any folder.
 > greadr --help

Config

  • GReadr uses a JSON file for configuration and options
  • Templates can be used, which are saved in the greadr installation folder
  • Custom config files can be created and edited:
 > greadr --create-json [templateType]

GReadr files can be added to your .gitignore:

 > greadr --ignore-greadr

Ignoring from the dir map

Can omit:

  • entire folders

  • file type extensions (e.g. "*.exe")

  • file names (including and excluding file extension)

  • partial names (i.e. contains "x")

  • GReadr files can be omitted from the map produced (on by default)

  • Git files (.gitignore, .git/, LICENSE) can also be omitted (on by default)

Created files

Can set any name or file extension with Output

Formatting

  • Can set the dir map title, that appears above the map
  • Double Space files/folders in map (useful for small projects)
  • Omit 'Empty' lines that contain no files or are new folder spacers

Data

  • This determine text or content that will be included before and after the map
    • (This text now is in the 'after.md' file!)
  • Can use a file or JSON value text, or even both as providers

!PLEASE NOTE: there are required properties for custom config files:

  • Output, both 'name' and 'type' fields are required
  • Boolean types fields should not be removed

Issues

Powershell execution policy may need to be altered to run GReadr:

 > set-executionpolicy -executionpolicy unrestricted
OR
> powershell.exe -executionpolicy unrestricted -command ./greadr.ps1

Planned Features

  • Compile to .exe
  • Making requirement of Go optional
  • rewrite in bash, and for CMD
  • add more config options in the JSON files

greadr's People

Contributors

owensteele avatar

Stargazers

 avatar Lorenzo Bulosan Bulosan avatar

Watchers

 avatar  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.