8000 GitHub - tetsuo/indentree: Parse indented text into tree diagram
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tetsuo/indentree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

indentree

Parse indented text input and generate a visually appealing tree diagram.

Installation

Clone this repository and run:

cc -o indentree indentree.c

Usage

indentree reads indented text from standard input and outputs a tree diagram to standard output. For example, to visualize a file named input.txt:

./indentree < input.txt

The program will process the indented text in input.txt and print a corresponding tree diagram.

Example

Given an input.txt with the following content:

Edit me to generate
  a
    nice
      tree
        diagram!
        :)
  Use indentation
    to indicate
      file
      and
        folder
        nesting
    do cool
        stuff

Running ./indentree < input.txt will output:

.
└─ Edit me to generate
   ├─ a
   │  └─ nice
   │     └─ tree
   │        ├─ diagram!
   │        └─ :)
   └─ Use indentation
      ├─ to indicate
      │  ├─ file
      │  └─ and
      │     ├─ folder
      │     └─ nesting
      └─ do cool
         └─ stuff

About

Parse indented text into tree diagram

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0