Skip to content

-S, --line-ascii option#30

Merged
yangshun merged 1 commit into
yangshun:masterfrom
KSR-Yasuda:feature/LineAscii
Oct 4, 2021
Merged

-S, --line-ascii option#30
yangshun merged 1 commit into
yangshun:masterfrom
KSR-Yasuda:feature/LineAscii

Conversation

@KSR-Yasuda

Copy link
Copy Markdown
Contributor

Add -S option to output tree graph line in ascii chars.

% bin/tree.js -S | head -n10
tree-node-cli
|-- bin
|   `-- tree.js
|-- jest.config.js
|-- LICENSE
|-- node_modules
|   |-- @babel
|   |   |-- code-frame
|   |   |   |-- lib
|   |   |   |   `-- index.js

The option name -S is following the Linux tree command
(Linux-tree uses the option name -A for ANSI line graphics, or double-byte line chars).

@yangshun yangshun left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, nice addition, thank you!

@yangshun yangshun merged commit c9f5896 into yangshun:master Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants