Closed azjones227 closed 2 months ago
In the help section, write a map for each error code, like;
Error code map
0 -- ok
1 -- Missing user input
2 -- internal error
3 -- command not found
o snap, there are some standards with error codes http://tldp.org/LDP/abs/html/exitcodes.html
CLI should be refactored: 1) use a dict where the key is the <--flag> and the value is the function 2) concept of the CLI controller and view
3 feature added. at current only the flag --add is necessary. Refactored hostcontrol.js to properly use try/catch with await functions.