theta42 / proxy

Simple API and Web front end to configure HTTP/S proxy, auto lets encrypt.
MIT License
2 stars 2 forks source link

Hosts cli #10

Closed azjones227 closed 2 months ago

azjones227 commented 5 years ago

3 feature added. at current only the flag --add is necessary. Refactored hostcontrol.js to properly use try/catch with await functions.

wmantly commented 5 years 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
wmantly commented 5 years ago

o snap, there are some standards with error codes http://tldp.org/LDP/abs/html/exitcodes.html

azjones227 commented 5 years ago

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