Skip to content

Refactoring scratch pad

Prasad Talasila edited this page Sep 21, 2018 · 74 revisions

Autolabcli-ng

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

  2. Debug messages sent to log manager by Winston logger.

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

  4. Exception handling for all commands.

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

  6. autolabjs init must handle the password containing special characters. see issue #32.

  7. nodegit is a node.js compatible wrapper for libgit2. We can use this library to integrate git functionality into autolabjs.

  8. 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 eval team --list <student_team_csv>
    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 install --check #deployment checks
    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>

References

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

Clone this wiki locally