enonic / cli-enonic

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

`project sandbox` command should output current sandbox #524

Closed alansemenov closed 5 months ago

alansemenov commented 6 months ago

There's currently no way to know which sandbox a project is linked to. We also have a semi-bug of including the project's sandbox when displaying the full list of sandboxes with enonic project sandbox command (there's no point in suggesting to link to a sandbox the project is already using).

So, let's do the following changes for the enonic project sandbox command. By default, show information about what sandbox the project is currently linked to:

"<project-name>" is using sandbox "<sandbox-name>". Change the project's sandbox? (y/N)"

If "y" is entered, show the list of sandboxes like now but filter out the project's current sandbox.

If a sandbox name is specified for the enonic project sandbox command, then keep the current behaviour - try to link the project to it.