mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-07 19:10:12 +08:00
feat: collect 2 level files info when ls
* change cli dir to /usr/local/lib/cli * refactor cli to multiple files * add handleCommand and listeners pattern
This commit is contained in:
1 parent
e6d6036cd0
commit
41a12c9aa8
8 files changed
+157
-81
No files matched your search
@@ -0,0 +1,6 @@
|
||||
const chokidar = require('chokidar')
|
||||
|
||||
// One-liner for current directory
|
||||
chokidar.watch('.').on('all', (event, path) => {
|
||||
console.log(event, path)
|
||||
})
|
||||
Reference in new issue
Block a user