aweary / alder Goto Github PK
View Code? Open in Web Editor NEWA minimal implementation of the UNIX tree command with colors!
License: MIT License
A minimal implementation of the UNIX tree command with colors!
License: MIT License
I've got the following error for some directories:
➜ java alder .
fs.js:968
binding.stat(pathModule._makeLong(path), statValues);
^
Error: ENOENT: no such file or directory, stat '/Users/vbauer/Documents/workspace/java/bu/mbi/mbi-admin/build/ivy/tmp/lib/test/mbi-core-default.jar'
at Object.fs.statSync (fs.js:968:11)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:136:22)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
at buildTree (/usr/local/lib/node_modules/@aweary/alder/alder.js:184:7)
Checked out this project just now, and after playing around with the options I had the following experience:
$ alder --depth 2
.
├── appearance
│ └── start
├── colors
│ └── start
├── editing
│ └── start
├── lang
│ └── start
└── project
└── start
10 directories, 0 files (0 B)
$ alder -d 2
node:internal/fs/utils:347
throw err;
^
Error: ENOENT: no such file or directory, scandir '/Users/agodin/.vim/pack/2'
at Object.readdirSync (node:fs:1451:3)
at buildTree (/Users/agodin/.nvm/versions/node/v18.14.2/lib/node_modules/@aweary/alder/alder.js:125:20)
at Object.<anonymous> (/Users/agodin/.nvm/versions/node/v18.14.2/lib/node_modules/@aweary/alder/alder.js:193:1)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/agodin/.vim/pack/2'
}
Node.js v18.14.2
It looks like the usage of -d
is setting 2
as the argument for which directory to use as the cwd.
Both depth/directories both say they have the shortcut of -d
but alder -d 3
returns this error:
fs.js:951
return binding.readdir(pathModule._makeLong(path), options.encoding);
^
Error: ENOENT: no such file or directory, scandir '${pwd}/3'
...
It doesn't actually return the string ${pwd} but it does return the current directory/3
Hello! Thanks for this.
This is a small feature request, I was running alder in a project that contains a node_modules
folder and it takes a while, plus it has a lot file I was not interested in listing. I thought it would be nice if by default it would pick up the .gitignore
file and skip those folders entirely. This would make scanning code project folders a breeze 🌬
If you think this make sense I can try to PR it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.