Trigger
Event trigger toolkit — webhook handlers, file watchers, condition-based automation, event logging, and chain triggers.
Commands
| Command | Description |
|---|
| INLINECODE0 | Execute main function |
| INLINECODE1 |
List all items |
|
trigger add <item> | Add new item |
|
trigger status | Show current status |
|
trigger export <format> | Export data |
|
trigger help | Show help |
Usage
CODEBLOCK0
Examples
CODEBLOCK1
How It Works
Tips
- - Run
trigger help for all commands - Data stored in INLINECODE7
When to Use
- - to automate trigger tasks in your workflow
- for batch processing trigger operations
Output
Returns formatted output to stdout. Redirect to a file with trigger run > output.txt.
Configuration
Set TRIGGER_DIR environment variable to change the data directory. Default: ~/.local/share/trigger/
Powered by BytesAgain | bytesagain.com
Feedback & Feature Requests: https://bytesagain.com/feedback
触发器
事件触发工具包——包含Webhook处理器、文件监控器、基于条件的自动化、事件日志记录以及链式触发器。
命令
| 命令 | 描述 |
|---|
| trigger run | 执行主函数 |
| trigger list |
列出所有项目 |
| trigger add
- | 添加新项目 |
| trigger status | 显示当前状态 |
| trigger export | 导出数据 |
| trigger help | 显示帮助信息 |
用法
bash
显示帮助信息
trigger help
快速启动
trigger run
示例
bash
使用默认设置运行
trigger run
检查状态
trigger status
导出结果
trigger export json
工作原理
提示
- - 运行 trigger help 查看所有命令
- 数据存储在 ~/.local/share/trigger/ 目录下
使用场景
- - 在工作流程中自动化触发器任务
- 批量处理触发器操作
输出
向标准输出返回格式化结果。使用 trigger run > output.txt 将结果重定向到文件。
配置
设置 TRIGGER_DIR 环境变量可更改数据目录。默认值:~/.local/share/trigger/
由BytesAgain提供 | bytesagain.com
反馈与功能请求:https://bytesagain.com/feedback