enonic / cli-enonic

GNU General Public License v3.0
41 stars 2 forks source link

`project dev` command for running a project in dev mode #463

Closed alansemenov closed 1 year ago

alansemenov commented 1 year ago

Introduce new command dev in project group which will:

TBD: gradlew dev is a non-exiting command, just as sandbox start. Which means we have to start the sandbox in the background (same as what --detach does), then run the gradlew dev task.

Special cases:

  1. Project doesn't have a sandbox yet. If user executes "project dev" inside a project that doesn't have a sandbox yet, remember to start the sandbox in "dev" mode when it's created and user answers "Yes" to the question about starting it.
  2. Project's sandbox is already running. Show a message "Sandbox <sandbox_name> is already running. Make sure it's running in dev mode or stop it and re-run the command." and don't attempt to start the sandbox.