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:
wancat committed 2023-08-21 20:40:05 +08:00
1 parent e6d6036cd0
commit 41a12c9aa8
8 files changed
+157 -81

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
const chokidar = require('chokidar')
// One-liner for current directory
chokidar.watch('.').on('all', (event, path) => {
console.log(event, path)
})