adobe / adobe/aio-cli-plugin-app
Support workspace creation in aio app use ?
- Dominant language
- JavaScript
- Stars
- 28
- Forks
- 41
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 3
Description
## Current Behavior
currently we are allowed to switch to a different workspace in the project, via a prompt:
```
You are currently in:
1. Org: <>
2. Project: <>
3. Workspace: <>
? Switch to a new Adobe Developer Console configuration: B. Switch to another Workspace in the current Project
? Select Workspace: (Use arrow keys or type to search)
❯ Production
Stage
```
Or via a flag `aio app use -w workspaceName`, in this case we check that the workspace exists
## Enhancement
In addition we could allow the creation of a new workspace to switch too, we would also benefit from the existing sync services logic.
Like in `aio app init` the prompt could look like:
```
? Select a Workspace, or press + to create new: (Use arrow keys or type to search)
❯ Production
Stage
```
pressing `+` allows to create a new workspace
The flag version of it could be `aio app use -w workspaceName --new-workspace`
Contributor guide
Research direction
Start with the existing `aio app use` workspace-selection flow and compare it with the creation prompt in `aio app init`. Trace the sync services logic used during initialization, then verify both interactive creation via `+` and `aio app use -w workspaceName --new-workspace`; done means a new workspace is created and selected in both paths.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100