ADS currently offers "File -> Options -> FluidShell -> Script" for defining a list of commands, maybe plus some comments as well, to be executed upon launching a shell.
This global script cannot be shared between FluidShell and MongoShell. We probably need to add another entry for defining javascript specific commands/comments.
Please review and see how we want to handle this, names of first/second level entries (FluidShell, Script) and newly added entry/ies, whether to share options currently defined in first level entry (FluidShell) such as General/Colors/Script Options, etc.
The amount of work for this enhancement is not only to modify the Options dialog, but also need to review all of ADS code that is used to execute a script.
Please also review 'Server Properties -> FluidShell' and decide whether a UI change is needed there.
I find differnce in MongoShell and native one for startup script. Native mongo shell runs special file .mongorc.js from user's home directory at starttime( if --norc parameter absent) but MongoShell does not run this file.
I find differnce in MongoShell and native one for startup script. Native mongo shell runs special file .mongorc.js from user's home directory at starttime( if --norc parameter absent) but MongoShell does not run this file.
For MongoShell, we do not want to support executing a script. We can re-evaluate this in a future release but this feature is not needed for ADS v14.
For MongoShell, we do not want to support executing a script. We can re-evaluate this in a future release but this feature is not needed for ADS v14.
Issue #9144 |
Closed |
Completion |
No due date |
No fixed build |
No time estimate |
3 issue links |
relates to #9313
Issue #9313Make separate history command buffers for FluidShell and MongoShell |
is a duplicate of #9450
Issue #9450Fluid shell startup script from Server Properties also works on MongoShell start |
relates to #8962
Issue #8962Enhance FluidShell to support CLI JavaScript and CLI MongoShell |
Please also review 'Server Properties -> FluidShell' and decide whether a UI change is needed there.