Scramjet Transform Hub (STH) is a runtime supervisor that can run data processing programs called Sequences and manage local resources on any Linux server, Docker on small edge servers, and even large-scale Kubernetes clusters in the cloud or datacenters. It connects to Scramjet Spaces in Scramjet Cloud Platform.
-Removes outside package for completer to remove nesting, and replace it with new implementation extending features
-Adds autocomplete for files and dirs
-Adds autocomplete for option and argument choices params
-Adds event to handle more personalised values for arguments and options in future (instanceId etc)
-Fix install and uninstall script to work with other package managers and nvm
-Removes si completer bash option (not needed)
-Adds system check to allow si completer option only on linux OS
-Changes location of scripts from cli/src/completion/ to cli/scripts/completion
Explanation of working on example:
i.e. si inst input <id> [file] --content-type
1) if command have children show chidren: i.e si or si inst - will show subcommands
2) if no more children check required arguments (no hihnts if not specified) i.e si inst input -will wait for user to write required id and no completer hinst should be given
3) if argument is optional give arg detailed hint (no hinsts if no event details provided: i.e si inst input 123 -will provide file hints
4) if no more arguments are required and command starts with -- provide options hint or options value hints if specified
Setup for testing
(requires global install of CLI)
In sth root: yarn build:packages
Get full path to sth/dist/cli/bin/index.js for later.
which si -> <siFilePath>
go to folder conatining <siFilePath> (without index.js)
In folder from 4. save value returned by readlink -f si
rm si
ln -s<Path to dist/cli/bin/index.js file in point 2>si
After all repeat 6. with file name from 5. to return to earlier version setup.
How to TEST
Run:
si completion install (just open new console or run exec bash to restart bash)
play with completer (si ... double TAB at variuos places)
-Removes outside package for completer to remove nesting, and replace it with new implementation extending features -Adds autocomplete for files and dirs -Adds autocomplete for option and argument choices params -Adds event to handle more personalised values for arguments and options in future (instanceId etc) -Fix install and uninstall script to work with other package managers and nvm -Removes si completer bash option (not needed) -Adds system check to allow
si completer
option only on linux OS -Changes location of scripts fromcli/src/completion/
tocli/scripts/completion
Explanation of working on example: i.e.
si inst input <id> [file] --content-type
1) if command have children show chidren: i.e si or si inst - will show subcommands 2) if no more children check required arguments (no hihnts if not specified) i.e si inst input -will wait for user to write required id and no completer hinst should be given 3) if argument is optional give arg detailed hint (no hinsts if no event details provided: i.e si inst input 123 -will provide file hints 4) if no more arguments are required and command starts with -- provide options hint or options value hints if specifiedSetup for testing
(requires global install of CLI)
yarn build:packages
which si
-><siFilePath>
<siFilePath>
(without index.js)readlink -f si
ln -s
<Path to dist/cli/bin/index.js file in point 2>si
After all repeat 6. with file name from 5. to return to earlier version setup.How to TEST Run:
si completion install
(just open new console or runexec bash
to restart bash)si completion uninstall
Clickup Task: https://app.clickup.com/t/24308805/VDM-1282
These aspects need to be checked by the reviewer: