mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20: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
@@ -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" ]
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user