-
Notifications
You must be signed in to change notification settings - Fork 5
Plugins
To manage a plugin, use the appropriate commands:
# install, uninstall and update a plugin
project plugins [install|uninstall|update] VENDOR/REPOSITORYVENDOR/REPOSITORY is basically the Github URI to the according repository. If you want to manage external Git repositories, then use the complete URL instead of just the URI. For example:
project plugins install https://github.com/chriha/pro-cli-jenkins.gitTo list all your installed plugins:
project plugins show -iTo list all available plugins:
project plugins show -aTo search available plugins:
project plugins search [YOUR_SEARCH]You can write your own plugin for pro-cli.
Plugins are included after initialisation and will / can overwrite existing commands!
Plugins need to have at least the plugin.sh to get included:
.
│── plugins
│ └── YOUR_PLUGIN
│ ├── help.sh
│ └── plugin.sh
The help.sh file will be included to show available commands:
#!/usr/bin/env bash
printf "YOUR PLUGIN COMMANDS:\n"
printf " ${BLUE}lorem${NORMAL}${HELP_SPACE:5}Run an example command.\n"Look into bootstrap.sh to see which variables are available.
If you like to change the order of when your plugin should be included, you can use numbers in the beginning of your plugin directory like 10_lorem. Keep in mind, that you have to update the plugins manually by changing into their directory and pull the latest version via git pull.
For a full list of plugins see pro-cli/plugins