VDM-1282: CLI autocomplete files and dirs #1000
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
-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/
tocli/scripts/completion
Explanation of working on example:
i.e.
si inst input <id> [file] --content-type
Setup 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: