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.
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.