subzerocloud / subzero-cli

Tooling to aid development of subZero/PostgREST based backend APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactoring

ruslantalpa opened this issue · comments

Right now the main functionality is the console/dashboard but we want to have other command in the future.
Right now we call it like this:
sz #in project directory or sz some/path/to/.env and this brings up the dashbaord

Let's refactor the code a little bit to prepare for the following way to call devtools.

  • sz #called in the root of the project, open dashbaord

  • sz -e some/path/to/.env # open dashboard

  • sz dashboard #called in the root of the project

  • sz -e some/path/to.env dashboard

  • sz -h or sz help

There should be a "main.js" file that reads the params and decides what to do then each module (dashboard/help) should be in a separate file.
all js files should move to src/