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

+1 -1
View File
@@ -14,6 +14,6 @@ WORKDIR /home/rudeus
COPY ./server/quests/helloworld/home /home/rudeus/
COPY ./packages/cli/cli.js /usr/local/bin/cli.js
COPY ./packages/cli /usr/local/lib/cli
CMD [ "/bin/zsh" ]
+1 -1
View File
@@ -29,7 +29,7 @@ precmd() {
export CMD_ERROR_FILE=/tmp/cmd.error
# Now run your Node.js script with the result as an argument
node /usr/local/bin/cli.js
node /usr/local/lib/cli/cli.js
rm /tmp/cmd.out /tmp/cmd.error 2>/dev/null # cleanup
}