Unverified Commit 8f79ffee authored by ritwizsinha's avatar ritwizsinha Committed by GitHub

Added autocomplete plugin to the cli (#68)

* Added autocomplete plugin to the cli

* Updated readme for autocompletion
Co-authored-by: default avatarDouglas Gubert <d-gubert@users.noreply.github.com>
parent 1cd8c121
...@@ -69,7 +69,6 @@ export class TodoListApp extends App { ...@@ -69,7 +69,6 @@ export class TodoListApp extends App {
Currently the Rocket.Chat servers and Marketplace allow submission of zip files, these files can be created by running `rc-apps package` which packages your app and creates the zip file under `dist` folder. Currently the Rocket.Chat servers and Marketplace allow submission of zip files, these files can be created by running `rc-apps package` which packages your app and creates the zip file under `dist` folder.
### Uploading the app ### Uploading the app
For uploading the app you need add to the required parameters in the .rcappsconfig already created in the apps directory. It accepts two types of objects:- For uploading the app you need add to the required parameters in the .rcappsconfig already created in the apps directory. It accepts two types of objects:-
...@@ -91,3 +90,7 @@ For uploading the app you need add to the required parameters in the .rcappsconf ...@@ -91,3 +90,7 @@ For uploading the app you need add to the required parameters in the .rcappsconf
token: string; token: string;
} }
``` ```
### Enabling autocomplete for commands
To enable autocomplete for the apps cli use the command `rc-apps autocomplete <your-shell-type>` with the shell type as zsh or bash as the supported types. This would provide a step by step instruction to enable shell completion in your preferred shell.
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
"@hapi/hapi": "^18.4.0", "@hapi/hapi": "^18.4.0",
"@oclif/command": "^1.5.18", "@oclif/command": "^1.5.18",
"@oclif/config": "^1.13.2", "@oclif/config": "^1.13.2",
"@oclif/plugin-autocomplete": "^0.2.0",
"@oclif/plugin-help": "^2.2.0", "@oclif/plugin-help": "^2.2.0",
"@oclif/plugin-not-found": "^1.2.2", "@oclif/plugin-not-found": "^1.2.2",
"@rocket.chat/apps-engine": "^1.12.0", "@rocket.chat/apps-engine": "^1.12.0",
...@@ -89,7 +90,8 @@ ...@@ -89,7 +90,8 @@
"bin": "rc-apps", "bin": "rc-apps",
"plugins": [ "plugins": [
"@oclif/plugin-help", "@oclif/plugin-help",
"@oclif/plugin-not-found" "@oclif/plugin-not-found",
"@oclif/plugin-autocomplete"
] ]
}, },
"nyc": { "nyc": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment