← 返回
效率工具 中文

Labor Law

Query Chinese labor law on overtime, leave, contracts, and severance rules. Use when checking overtime rules, calculating severance, reviewing contracts.
查询中国加班、休假、合同及裁员补偿等劳动法规定,用于检查加班规则、计算裁员补偿、审查合同。
ckchzh
效率工具 clawhub v2.0.1 3 版本 99901.2 Key: 无需
★ 2
Stars
📥 971
下载
💾 43
安装
3
版本
#latest#productivity

概述

Labor Law

A multi-purpose utility tool for managing data entries from the command line. Run tasks, manage configurations, track items, search entries, and export data — with full activity logging and history.

Commands

CommandDescription
----------------------
labor-law run Execute the main function with given arguments
labor-law configShow the configuration file path ($DATA_DIR/config.json)
labor-law statusDisplay current status (ready/not ready)
labor-law initInitialize the data directory
labor-law listList all entries in the data log
labor-law add Add a new timestamped entry to the data log
labor-law remove Remove a specified entry
labor-law search Search entries in the data log (case-insensitive)
labor-law exportExport all data from the data log to stdout
labor-law infoShow version number and data directory path
labor-law helpShow the built-in help message
labor-law versionPrint the current version

Data Storage

All data is stored in $DATA_DIR/data.log as plain text with date-prefixed entries. Activity history is logged to $DATA_DIR/history.log with timestamps. The default data directory is ~/.local/share/labor-law/. Override it by setting the LABOR_LAW_DIR environment variable, or it will respect XDG_DATA_HOME if set.

Requirements

  • Bash 4+ with standard Unix utilities (date, grep, cat)
  • No external dependencies or API keys required
  • Works on any Linux/macOS terminal

When to Use

  1. Quick data tracking — Use labor-law add to log items with automatic timestamps, then labor-law list to review everything you've recorded.
  2. Searching past entries — Run labor-law search to find specific entries in your data log using case-insensitive matching.
  3. Initializing a new workspace — Use labor-law init to set up the data directory, then labor-law config to verify the configuration path.
  4. Checking system readiness — Run labor-law status for a quick confirmation that the tool is ready and operational.
  5. Exporting data for external use — Use labor-law export to dump all logged data to stdout, which you can redirect to a file or pipe to another tool.

Examples

# Initialize the data directory
labor-law init

# Add entries to the data log
labor-law add "Review employment contract for new hire"
labor-law add "Check overtime policy compliance"
labor-law add "Prepare severance calculation"

# List all entries
labor-law list

# Search for specific entries
labor-law search "overtime"

# Check status
labor-law status

# View configuration path
labor-law config

# Show version and data directory
labor-law info

# Export all data
labor-law export > backup.txt

# Run a task
labor-law run "quarterly review"

# Remove an entry
labor-law remove "old item"

How It Works

Labor Law stores all entries locally in ~/.local/share/labor-law/data.log. Each add command prepends the current date to the entry. Every command invocation is logged to history.log with a timestamp for full audit traceability. No data leaves your machine — everything is stored locally in plain text files.

Configuration

Set LABOR_LAW_DIR to change the data directory:

export LABOR_LAW_DIR=/custom/path

Default: ~/.local/share/labor-law/


Powered by BytesAgain | bytesagain.com | hello@bytesagain.com

版本历史

共 3 个版本

  • v2.0.1 当前
    2026-03-29 10:10 安全 安全
  • v1.0.5
    2026-03-18 20:40
  • v1.0.0
    2026-03-14 02:53

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 440 📥 148,327
developer-tools

Legal Advisor

ckchzh
生成劳动、消费、租赁及交通纠纷法律模板,适用于撰写纠纷信函、审查租户权利、准备索赔等。
★ 4 📥 4,017
productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 446 📥 226,507