command
module
Version:
v0.0.0-...-61d3821
Opens a new window with list of versions in this module.
Published: Jul 9, 2022
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Markdown Tree
This tool extracts the target directory hierarchy and converts it to a markdown file.
Prerequisites
Usage
go run ./main.go --input-dir ${input-dir} --output-file ${output-file}
Rules
- Directories will become to heading lines with level according to its depth of the root dir.
- Files will become to items of list.
- Only support 6 levels since markdown only has 6 levels.
Special Case
- Directories with "-example" suffix will be list items, too.
Example
The directory hierarchy as shown above will be converted to markdown format as bellow.
# test-dir
## dev
- concept.md
### language
#### golang
- dummy.md
- helloworld-example
##### demo
###### in-demo
- in-in-demo
- a.md
## doc
### tutorial
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
pkg
|
|
|
|
Click to show internal directories.
Click to hide internal directories.