@cicolas/todo-cli
v1.3.4
Published
a command line software to create and manage your tasks of your project
Maintainers
Readme
TODO-CLI
TODO-CLI is a small command-line app for creating and managing project task lists from the terminal. It stores tasks in Markdown files, so your todo list can stay beside the code it belongs to.
Features
- Open and edit
.todo.mdfiles from an interactive terminal UI. - Mark tasks as complete or mark them for deletion.
- Create a todo file for the current project or a custom path.
- Generate tasks from
TODO:comments found in source files. - Open the recent-file hub to jump between todo lists.
Requirements
- Node.js
- npm
Installation
Install the published package globally:
npm install -g @cicolas/todo-cliAfter installation, run the CLI with either command:
todo
todo-cliUsage
Create the default .todo.md file in the current directory:
todo initOpen the default todo file:
todoOpen a specific Markdown todo file:
todo path/to/tasks.mdGenerate todo items from TODO: comments in a directory:
todo generate .
todo generate src -o generated-tasks.mdOpen the recent todo-file hub:
todo hub
todo hub --sortUse -g or --global with supported commands to use the global todo path instead of the current project path.
Interactive Controls
Use Up and Down to move through the list. Use Space or Enter to select the highlighted item. Use Left and Right to switch between complete/open mode and delete mode. Press Ctrl + C to save and exit.
The todo screen includes actions for creating a new task, saving, deleting marked tasks, and deleting completed tasks.
Todo File Format
TODO-CLI reads Markdown checklist items:
# Todo
Project tasks
- [ ] write documentation
- [x] publish packageGenerated tasks are appended to the selected todo file and duplicate task names are skipped.
Development
Install dependencies before running the CLI locally:
npm install
node bin/index.js --helpRun the linter with:
npx eslint bin/index.js bin/scripts/generate.jsThere is currently no automated test suite; use the commands above for manual smoke testing when changing CLI behavior.
