You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reorder CLI options and docs to match Linux tree categories
Group options into Listing, File, Sorting, Graphics, Output, and Misc
categories, matching the section order from the Linux tree(1) man page.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|`allFiles`|`false`|`boolean`| All files, including hidden files, are printed. |
153
-
|`date`|`false`|`boolean`| Show last modification time for each entry. |
154
-
|`dirsFirst`|`false`|`boolean`| List directories before files. |
164
+
|`dirsOnly`|`false`|`boolean`| List directories only. |
155
165
|`fullPath`|`false`|`boolean`| Print the full path prefix for each file. |
156
-
|`noIndent`|`false`|`boolean`| Print entries without tree indentation lines.|
157
-
|`permissions`|`false`|`boolean`| Show file type and permissions (e.g. `[drwxr-xr-x]`).|
158
-
|`quote`|`false`|`boolean`|Quote filenames in double quotes. |
166
+
|`maxDepth`|`Number.POSITIVE_INFINITY`|`number`| Max display depth of the directory tree.|
167
+
|`exclude`|`[]`|`RegExp[]`| An array of regex to test each filename against. Matching files will be excluded and matching directories will not be traversed into. To exclude a directory's contents while still showing the directory itself, use a regex that matches the path with a trailing slash (e.g., `/node_modules\//`).|
168
+
|`gitignore`|`true`|`boolean`|Respect `.gitignore` files when inside a git repository. Use `--no-gitignore` to disable.|
159
169
|`prune`|`false`|`boolean`| Remove empty directories from output. |
160
-
|`dirsOnly`|`false`|`boolean`| List directories only. |
170
+
|`quote`|`false`|`boolean`| Quote filenames in double quotes. |
171
+
|`permissions`|`false`|`boolean`| Show file type and permissions (e.g. `[drwxr-xr-x]`). |
161
172
|`sizes`|`false`|`boolean`| Print the size of each file in bytes along with the name. |
162
173
|`du`|`false`|`boolean`| For each directory, report its size as the accumulation of sizes of all its files and sub-directories. Implies `sizes`. |
163
-
|`gitignore`|`true`|`boolean`| Respect `.gitignore` files when inside a git repository. Use `--no-gitignore` to disable. |
164
-
|`exclude`|`[]`|`RegExp[]`| An array of regex to test each filename against. Matching files will be excluded and matching directories will not be traversed into. To exclude a directory's contents while still showing the directory itself, use a regex that matches the path with a trailing slash (e.g., `/node_modules\//`). |
165
-
|`maxDepth`|`Number.POSITIVE_INFINITY`|`number`| Max display depth of the directory tree. |
166
-
|`reverse`|`false`|`boolean`| Sort the output in reverse alphabetic order. |
174
+
|`date`|`false`|`boolean`| Show last modification time for each entry. |
167
175
|`trailingSlash`|`false`|`boolean`| Append a `/` for directories. |
168
-
|`lineAscii`|`false`|`boolean`| Turn on ASCII line graphics. |
169
-
|`filesFirst`|`false`|`boolean`| List files before directories. |
0 commit comments