Skip to content

Refactoring scratch pad

Prasad Talasila edited this page Apr 14, 2018 · 74 revisions

Autolabcli-ng

  1. On autolabjs exit, wipe out the gitlab credentials.

  2. Implement the following commands
    autolabjs show labs #show active labs only
    autolabjs show labs -c <category> #categories are: scheduled, active, late, expired, all
    autolabjs show score -l <lab_name>
    autolabjs show score -l <lab_name> -i <student_id>
    autolabjs show time
    autolabjs show status

    autolabjs eval bulk --list <student_list>
    autolabjs lab create
    autolabjs lab update
    autolabjs lab delete
    autolabjs admin restart -s <service_name>
    autolabjs admin stats -s <service_name>
    autolabjs admin logs -s <service_name>
    autolabjs admin install -f
    autolabjs admin uninstall
    autolabjs admin update
    autolabjs admin docker pull
    autolabjs admin docker load
    autolabjs admin docker pull
    autolabjs admin docker build -c <component_name>

  3. package (Module dependency) diagram for autolabcli application.

  4. Debug messages sent to log manager by Winston logger. Caporal already has winston embedded in it. Make use of it.

  5. Filter sensitive output from stdout and stderr of console.

  6. Exception handling for all commands.

  7. Generate proper error conditions. see issue #27.

  8. autolab init must handle the password contains special characters. see issue #32.

References

  1. mastering cli apps
  2. Mocking stdin and stdout in node
  3. Modular code structure in vorpal.js

Clone this wiki locally