This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script generates markdown from the output of the `tree` command. | |
# See: https://linux.die.net/man/1/tree | |
# See: https://gist.github.com/kflorence/7f18ad97c65337ef77d37159260a331d | |
set -e | |
# Tree is configured with: | |
# - `-f`: use full paths in output (relative to directory given, in this case '.'). | |
# - `--noreport`: exclude the directories and files report as the last line of output. |