Skip to content

Refactoring scratch pad

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

Autolabcli-ng

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

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

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

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

  5. package (Module dependency) diagram for autolabcli application. Update on this page.

  6. Sequence diagram for autolabcli application. Update on this page.

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

  8. Exception handling for all commands.

  9. Implement the following commands
    autolabjs eval bulk --list <student_list>

    autolabjs lab create
    autolabjs lab update
    autolabjs lab delete

    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 team --list <student_team_csv>
    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