Add New Tool
Adding a new tool is so easy. You can add any types of tools in Spider.
Create Shell Script
Navigate to the tools/scripts
directory, choose a category folder, and within that folder, create the script for your tool. This shell script should contain all the instructions for installing the tool.
Let’s have a look at a Python based tool.
References:
Variable | Description |
---|---|
tool_language | Language of the tool. Example: Python, Go. |
tool_directory | Folder name of tool. You’ll find it under et directory. It Should be same as Git repository name. |
branch_name | Branch name of the Git repository. |
has_dependencies | true or false . |
git_repo | The URL of Git repository. |
Create Fixture
Now, go to tools/fixtures/tools
directory. Then select/create a category file, example igt.json
and insert the new tool data in the following format at the end of the file:
References:
Variable | Description |
---|---|
name | The name of the tool. |
lang | Same language as shell script. |
directory | Same directory as shell script. |
run | Main run filename or command. |
script | Installation script path. |
category_slug | Slug of tool category. |
git_repo | The URL of Git repository. |
website | Website of the tool (optional). |
short_desc | Short description of the tool. |
Insert to Database
Visit the URL to insert new tool to database:
Done. Visit the following URL and check:
After adding & testing the tool, create a Pull Request.
Prev
Add New CategoryNext
APT Tool