Description
This will allow us to have different test environments.
The current folder needs to be moved one hierarchy lower (and all files adjusted) when running the new version of dev-server. The newly introduced folder will be called "default".
If there is only one profile (i.e. one folder), it will be used automatically.
If there there are multiple profiles, the user must use the (new) additional parameter (after the command) to choose the profile.
If the user doesn't specify the parameter, he is asked to choose the profile from a list.
A new profile can be created by using dev-server setup <profile-name>
. The new name shall only contain ASCII characters, dashes and periods; no other characters (including spaces) are allowed. If the profile already exists, setup
works the same way as before: if there is no --force
option, it fails.
The new command dev-server profile
lists all available profiles (actually just the directory names).