ERP
Enterprise resource planning productivity toolkit (v2.0.0). Log and track business activities across multiple categories — planning, tracking, reviews, reminders, priorities, archiving, tagging, timelines, reports, and weekly reviews. Each command records timestamped entries to its own log file, giving you a complete audit trail of all business operations.
Commands
| Command | Description |
|---|
| INLINECODE0 | Add a new entry to the general log. Without args, shows recent entries. |
| INLINECODE1 |
Record a planning note (resource allocation, project plan, etc.). Without args, shows recent plan entries. |
|
erp track <input> | Track an activity, metric, or progress item. Without args, shows recent tracked entries. |
|
erp review <input> | Log a review note (performance review, process review, etc.). Without args, shows recent reviews. |
|
erp streak <input> | Record a streak milestone or daily streak entry. Without args, shows recent streaks. |
|
erp remind <input> | Set a reminder or note something to follow up on. Without args, shows recent reminders. |
|
erp prioritize <input> | Log a prioritization decision or rank items. Without args, shows recent priorities. |
|
erp archive <input> | Archive a completed item or record. Without args, shows recent archived entries. |
|
erp tag <input> | Tag or categorize an entry. Without args, shows recent tags. |
|
erp timeline <input> | Add an event to the timeline. Without args, shows recent timeline entries. |
|
erp report <input> | Log a report or summary. Without args, shows recent reports. |
|
erp weekly-review <input> | Record a weekly review summary. Without args, shows recent weekly reviews. |
|
erp stats | Show summary statistics: entry counts per category, total entries, data size, and earliest record date. |
|
erp export <fmt> | Export all data to a file. Supported formats:
json,
csv,
txt. |
|
erp search <term> | Search across all log files for a keyword (case-insensitive). |
|
erp recent | Show the 20 most recent entries from the activity history log. |
|
erp status | Health check: version, data directory, total entries, disk usage, last activity. |
|
erp help | Show the built-in help with all available commands. |
|
erp version | Print the current version (v2.0.0). |
Data Storage
All data is stored as plain-text log files in ~/.local/share/erp/:
- - Per-command logs — Each command (add, plan, track, etc.) writes to its own
.log file (e.g., add.log, plan.log). - History log — Every operation is also appended to
history.log with a timestamp and command name. - Export files — Generated in the same directory as
export.json, export.csv, or export.txt.
Entries are stored in timestamp|value format, making them easy to grep, parse, or pipe into other tools.
Requirements
- - Bash 4.0+ (uses
set -euo pipefail) - coreutils —
date, wc, du, head, tail, grep, basename, INLINECODE39 - No external dependencies, API keys, or network access required
- Works fully offline on any POSIX-compatible system
When to Use
- 1. Daily operational logging — Track what happened across departments each day: sales calls, support tickets resolved, inventory received, tasks completed.
- Resource planning and prioritization — Use
plan and prioritize to record allocation decisions and rank items by importance before committing resources. - Weekly business reviews — Run
weekly-review to summarize the week, then stats to see aggregate numbers and export json to share with stakeholders. - Reminder and follow-up management — Use
remind to note items that need attention later, and search to quickly find past reminders by keyword. - Audit trail and compliance — Every action is timestamped and logged to
history.log, providing a complete chronological record of all ERP activities for auditing purposes.
Examples
CODEBLOCK0
Tips
- - Run any data command without arguments to see recent entries (e.g.,
erp add shows the last 20 add entries). - Use
erp recent for a quick overview of all activity across all categories. - Pipe exports to other tools: INLINECODE50
- Back up your data by copying
~/.local/share/erp/ to your preferred backup location.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
ERP
企业资源规划生产力工具包(v2.0.0)。跨多个类别记录和跟踪业务活动——规划、跟踪、评审、提醒、优先级、归档、标签、时间线、报告和每周评审。每条命令都会将带时间戳的条目记录到其专属日志文件中,为您提供所有业务操作的完整审计追踪。
命令
| 命令 | 描述 |
|---|
| erp add <输入> | 向通用日志添加新条目。无参数时显示最近条目。 |
| erp plan <输入> |
记录规划笔记(资源分配、项目计划等)。无参数时显示最近规划条目。 |
| erp track <输入> | 跟踪活动、指标或进度项。无参数时显示最近跟踪条目。 |
| erp review <输入> | 记录评审笔记(绩效评审、流程评审等)。无参数时显示最近评审条目。 |
| erp streak <输入> | 记录连续里程碑或每日连续条目。无参数时显示最近连续记录。 |
| erp remind <输入> | 设置提醒或记录待跟进事项。无参数时显示最近提醒条目。 |
| erp prioritize <输入> | 记录优先级决策或对项目排序。无参数时显示最近优先级条目。 |
| erp archive <输入> | 归档已完成项目或记录。无参数时显示最近归档条目。 |
| erp tag <输入> | 为条目添加标签或分类。无参数时显示最近标签条目。 |
| erp timeline <输入> | 向时间线添加事件。无参数时显示最近时间线条目。 |
| erp report <输入> | 记录报告或摘要。无参数时显示最近报告条目。 |
| erp weekly-review <输入> | 记录每周评审摘要。无参数时显示最近每周评审条目。 |
| erp stats | 显示汇总统计:各类别条目数、总条目数、数据大小和最早记录日期。 |
| erp export <格式> | 将所有数据导出到文件。支持的格式:json、csv、txt。 |
| erp search <关键词> | 在所有日志文件中搜索关键词(不区分大小写)。 |
| erp recent | 显示活动历史日志中最近的20条条目。 |
| erp status | 健康检查:版本、数据目录、总条目数、磁盘使用量、最近活动。 |
| erp help | 显示包含所有可用命令的内置帮助。 |
| erp version | 打印当前版本(v2.0.0)。 |
数据存储
所有数据以纯文本日志文件形式存储在 ~/.local/share/erp/ 中:
- - 按命令分类的日志 — 每条命令(add、plan、track等)写入其专属的 .log 文件(例如 add.log、plan.log)。
- 历史日志 — 每次操作也会附加到 history.log 中,包含时间戳和命令名称。
- 导出文件 — 在同一目录下生成 export.json、export.csv 或 export.txt。
条目以 时间戳|值 格式存储,便于使用grep、解析或管道传输到其他工具。
要求
- - Bash 4.0+(使用 set -euo pipefail)
- coreutils — date、wc、du、head、tail、grep、basename、cut
- 无需外部依赖、API密钥或网络访问
- 可在任何POSIX兼容系统上完全离线运行
使用场景
- 1. 日常运营日志记录 — 跟踪各部门每天发生的情况:销售电话、已解决的支持工单、已接收的库存、已完成的任务。
- 资源规划与优先级排序 — 使用 plan 和 prioritize 记录分配决策,在投入资源前按重要性对项目排序。
- 每周业务评审 — 运行 weekly-review 总结本周情况,然后使用 stats 查看汇总数据,使用 export json 与利益相关者共享。
- 提醒与跟进管理 — 使用 remind 记录需要稍后关注的事项,使用 search 按关键词快速查找过去的提醒。
- 审计追踪与合规 — 每个操作都带有时间戳并记录到 history.log 中,为审计目的提供所有ERP活动的完整时间顺序记录。
示例
bash
添加新库存项目
erp add 从供应商X收到500件Widget-A
规划第二季度资源分配
erp plan 第二季度为Alpha项目分配3名工程师
跟踪KPI
erp track 客户满意度评分:4.7/5.0
设置优先级
erp prioritize 在feature-Y之前发布feature-X——客户截止日期3月30日
记录每周评审
erp weekly-review 第12周:发布3个功能,解决15个工单,收入增长8%
搜索任何提及Widget的内容
erp search Widget
将所有数据导出为JSON用于报告
erp export json
检查系统健康状态
erp status
查看汇总统计
erp stats
提示
- - 不带参数运行任何数据命令可查看最近条目(例如 erp add 显示最近20条添加条目)。
- 使用 erp recent 快速查看所有类别的所有活动概览。
- 将导出内容管道传输到其他工具:cat ~/.local/share/erp/export.csv | column -t -s,
- 通过复制 ~/.local/share/erp/ 到您偏好的备份位置来备份数据。
由BytesAgain提供技术支持 | bytesagain.com | hello@bytesagain.com