Skip to content

WatchaAI/task-manager-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Task Manager CLI

Command line interface for Task Manager Desktop. It includes its own SQLite store implementation and uses the same database file as the Electron app.

The CLI is written in TypeScript and compiled to CommonJS for Node.js. It can be installed separately from the desktop app.

Development

npm install
npm run build
npm test

Installation

npm install -g .
task-manager list

The CLI has its own better-sqlite3 dependency. Install and run it with the same Node.js major version. If you switch Node.js versions after installation, reinstall the CLI so the native SQLite module is rebuilt for that runtime.

Usage

node bin/task-manager.js list
node bin/task-manager.js board --type 工作
node bin/task-manager.js stats
node bin/task-manager.js show 1

node bin/task-manager.js type add 项目
node bin/task-manager.js type rename 项目 客户项目
node bin/task-manager.js type delete 客户项目

node bin/task-manager.js add "写周报" --type 工作 --status todo --subtask "列提纲" --subtask "补数据"
node bin/task-manager.js update 1 --title "写本周周报" --description "整理关键进展"
node bin/task-manager.js start 1
node bin/task-manager.js done 1
node bin/task-manager.js move 1 --status in_progress --after 2
node bin/task-manager.js delete 1

node bin/task-manager.js subtask list 1
node bin/task-manager.js subtask add 1 "检查错别字"
node bin/task-manager.js subtask done 1 1
node bin/task-manager.js subtask rename 1 1 "检查格式和错别字"
node bin/task-manager.js subtask toggle 1 1
node bin/task-manager.js subtask delete 1 1

Use JSON output when scripting:

node bin/task-manager.js --json list --status todo --query 周报

Use a custom database:

node bin/task-manager.js --db /path/to/tasks.sqlite list
TASK_MANAGER_DB=/path/to/tasks.sqlite node bin/task-manager.js list

The default database lookup checks common Electron userData locations, including:

  • ~/Library/Application Support/Task Manager Desktop/tasks.sqlite
  • ~/Library/Application Support/task-manager-desktop/tasks.sqlite
  • ~/Library/Application Support/Task Manager/tasks.sqlite
  • ~/Library/Application Support/task-manager/tasks.sqlite

About

代办任务的 CLI,让 Agent 全自动操作

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors