Add slot
Overview
We have preset a lot of slots for you so that you can easily customize the operations you want on ONES. At present, you can simply use the slot as a "placeholder", and your plugin is to fill the placeholder with code.
Slots
Usage
Step 1: Add slot module
Execute npx op add module
under the root directory of the plugin project to add slot modules to the plugin.
➜ npx op add module
✔ Validating the input params
✔ Validating project files exists
✔ Generating initial answers by input params
✔ Parsing plugin config content
Pre-require tasks run successfully
? Please select the module type you want to add: …
ones:desk
ones:manhour
ones:performance
ones:plan
ones:pipeline
ones:product
ones:testcase
ones:version
You can search for and select slot modules in the list by selecting a direction key or entering a string.
If you choose a slot that contains submodules, you will continue to be asked if you need to add submodules. You can add it together, or you can choose to add it manually later.
Step 2: Add slot Submodule
Execute npx op add sub-module
under the plugin project directory to add submodules to the slot module.
➜ npx op add sub-module
✔ Validating the input params
✔ Validating project files exists
✔ Generating initial answers by input params
✔ Parsing plugin config content
Pre-require tasks run successfully
? Please select the module you want to add a sub module: (Use arrow keys)
❯ ones-workspace-fKFw
❯ ones-plan-fKFF
❯ ones-wiki-uuDB
You can search for and select slot module id in the list by selecting a direction key or entering a string.
Not all slots have submodules. If you look up the list of modules and find that there are no submodules in the module you need, you can skip the second step.