cline/xit
Composer 安装命令:
composer create-project cline/xit
包简介
A CLI task management tool for xit format files.
关键字:
README 文档
README
A Laravel Zero CLI application for managing tasks in the xit format - plain-text todos with checkboxes.
Features
- ✅ Full xit v1.1 specification compliance - All checkbox types, priorities, tags, due dates
- ✅ All 12 commands implemented - show, stats, add, mark, reschedule, rm, move, recur, edit, prio, tag, untag
- ✅ Batch operations - Mark/reschedule/remove/move multiple tasks at once
- ✅ Smart date parsing - today, tomorrow, +1w, +2m, yyyy-mm-dd, etc.
- ✅ Task IDs - Reference tasks by sequential IDs across all files
- ✅ Auto-discovery - Automatically finds
.xitfiles in current directory - ✅ Colorized output - Status-specific colors for better readability
- ✅ Task statistics - See completion rates and task breakdowns
- ✅ Recurring tasks - Create weekly/monthly/daily recurring instances
Installation
composer install php xit app:build
Usage
Show Tasks
# Show all tasks in current directory php xit show # Show tasks from specific file php xit show --file tasks.xit # Show only open tasks php xit show --status open # Show tasks with IDs for reference php xit show --show-id # Include subdirectories php xit show --subdir
Add Tasks
# Add a simple task php xit add "Buy groceries" # Add task with priority, tags, and due date php xit add "!! Important meeting -> 2025-12-15 #work" --file work.xit
Mark Tasks
# Mark task #5 as done php xit mark 5 --done # Mark multiple tasks as done php xit mark 2 3 4 5 6 --done # Reopen a task php xit mark 1 --open # Mark tasks as obsolete php xit mark 7 8 --obsolete # Mark task as in question php xit mark 9 --inquestion # Mark task as ongoing php xit mark 3 --ongoing
Reschedule Tasks
# Set specific date for single task php xit reschedule 5 --date 2025-12-31 # Set multiple tasks to today php xit reschedule 2 3 4 --date today # Set task to tomorrow php xit reschedule 1 --date tomorrow # Add one week to tasks php xit reschedule 1 2 --date "+1w"
Remove Tasks
# Remove single task (with confirmation) php xit rm 5 # Remove multiple tasks php xit rm 2 3 4 5 # Remove without confirmation php xit rm 5 --force
Move Tasks Between Files
# Move single task to another file php xit move 5 --target other.xit # Move multiple tasks php xit move 2 3 4 --target done.xit
Create Recurring Tasks
# Create 4 weekly instances of task #5 php xit recur 5 --interval 1w --count 4 # Create 5 bi-weekly instances php xit recur 3 --interval 2w --count 5 # Monthly recurrence until end date php xit recur 7 --interval 1m --end 2026-12-31 # Daily recurrence in specific file php xit recur 2 --interval 1d --count 30 --target work.xit
Edit Task Properties
# Change task description php xit edit 5 "Updated task description" # Set priority level (0-3) php xit prio 3 2 # Remove priority php xit prio 7 0 # Add tag to task php xit tag 5 urgent # Remove tag from task php xit untag 5 urgent
View Statistics
# Show task statistics php xit stats # Show stats for specific file php xit stats --file work.xit
XIT Format
The xit format is a plain-text specification for todos with these features:
Status Checkboxes
[ ] Open task
[x] Checked/completed task
[@] Ongoing task
[~] Obsolete task
[?] Task in question
Priorities
[ ] ! Important
[ ] !! Very important
[ ] !!! Critical
Tags and Due Dates
[ ] Buy groceries #shopping -> 2025-11-01
[ ] Fix bug #urgent #work -> 2025-Q4
[ ] Review code #work -> 2025-W45
Groups and Titles
Shopping
[ ] Buy milk
[ ] Buy bread
Work
[ ] Review PRs
[ ] Fix bugs
Continuation Lines
[ ] Long task description
that continues on the next line
and can span multiple lines
Examples
Create a task file:
echo "Shopping [ ] Buy milk [ ] Buy bread" > tasks.xit
View tasks:
php xit show --show-id # [1] ☐ Buy milk # [2] ☐ Buy bread
Mark task as done:
php xit mark 1 --done php xit show # ☑ Buy milk # ☐ Buy bread
View statistics:
php xit stats # Total tasks: 2 # Open: 1 # Checked: 1 # Completion rate: 50.0%
Architecture
app/
├── Commands/ # All 12 xit commands
│ ├── ShowCommand.php
│ ├── StatsCommand.php
│ ├── AddCommand.php
│ ├── MarkCommand.php
│ ├── RescheduleCommand.php
│ ├── RmCommand.php
│ ├── MoveCommand.php
│ ├── RecurCommand.php
│ ├── EditCommand.php
│ ├── PrioCommand.php
│ ├── TagCommand.php
│ └── UntagCommand.php
├── Parser/ # Spec-compliant xit parser
│ ├── Task.php
│ ├── Tag.php
│ ├── DueDate.php
│ ├── TaskGroup.php
│ ├── XitFile.php
│ └── XitParser.php
└── Services/ # Utilities
├── DateParser.php
├── FileDiscovery.php
└── TaskIndex.php
Documentation
Cookbook
Comprehensive guides for all features:
- CLI Syntax - ⚠️ Important syntax differences from original spec
- Basic Commands - show, stats, add
- Task Management - mark, edit, prio
- Scheduling - reschedule, recur, date formats
- Batch Operations - multi-task operations
- Organization - move, tag, file management
- XIT Format - complete format specification
Quick links
- Getting started: See Basic Commands
- Daily workflows: See Task Management and Organization
- Date handling: See Scheduling
- Format spec: See XIT Format
License
MIT
cline/xit 适用场景与选型建议
cline/xit 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 10 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「todo」 「task-management」 「xit」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cline/xit 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cline/xit 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cline/xit 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Task management backend for Laravel Enso
Make temporary Laravel workarounds expire and fail CI when ignored.
Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.
Task management dependency for Laravel Liberu
Modern PHP SDK for Freelo API - Project and task management
A plugin for Roundcube to include CalDAVZap in to the main GUI
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-31