Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dalenguyen/todo-cli
Todo list CLI with OCLIF and TypeScript
https://github.com/dalenguyen/todo-cli
cli command-line hacktoberfest oclif todo todolist typescript
Last synced: 4 months ago
JSON representation
Todo list CLI with OCLIF and TypeScript
- Host: GitHub
- URL: https://github.com/dalenguyen/todo-cli
- Owner: dalenguyen
- Created: 2019-04-03T13:51:37.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-07-11T23:25:00.000Z (over 1 year ago)
- Last Synced: 2024-10-09T05:18:06.484Z (4 months ago)
- Topics: cli, command-line, hacktoberfest, oclif, todo, todolist, typescript
- Language: TypeScript
- Homepage:
- Size: 743 KB
- Stars: 1
- Watchers: 3
- Forks: 3
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
todocli
=======Todo list command with [oclif](https://github.com/oclif/oclif) and TypeScript
* [Usage](#usage)
* [Commands](#commands)# Usage
This project has not been published to NPM package yet. If you want to use it, please replace __todocli__ with __./bin/run__.
For example, to show all tasks:
```sh
./bin/run show
```# Commands
* [`todocli add`](#todocli-add)
* [`todocli help [COMMAND]`](#todocli-help-command)
* [`todocli remove`](#todocli-remove)
* [`todocli show`](#todocli-show)
* [`todocli update`](#todocli-update)## `todocli add`
Adds a new todo
```
USAGE
$ todocli addOPTIONS
-n, --task=task taskDESCRIPTION
...
Adds a new todo to the existing list
```_See code: [src/commands/add.ts](https://github.com/dalenguyen/todocli/blob/v0.0.0/src/commands/add.ts)_
## `todocli help [COMMAND]`
display help for todocli
```
USAGE
$ todocli help [COMMAND]ARGUMENTS
COMMAND command to show help forOPTIONS
--all see all commands in CLI
```_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.6/src/commands/help.ts)_
## `todocli remove`
Removes a task by id
```
USAGE
$ todocli removeOPTIONS
--id=id (required) id of the taskDESCRIPTION
...
Removes a task permanently from database by id
```_See code: [src/commands/remove.ts](https://github.com/dalenguyen/todocli/blob/v0.0.0/src/commands/remove.ts)_
## `todocli show`
Shows existing tasks
```
USAGE
$ todocli showDESCRIPTION
...
Shows all the tasks sorted by their ids
```_See code: [src/commands/show.ts](https://github.com/dalenguyen/todocli/blob/v0.0.0/src/commands/show.ts)_
## `todocli update`
Marks a task as done
```
USAGE
$ todocli updateOPTIONS
--id=id (required) id of the taskDESCRIPTION
...
Marks a task as done
```_See code: [src/commands/update.ts](https://github.com/dalenguyen/todocli/blob/v0.0.0/src/commands/update.ts)_
## Reference
[How to build a CLI tool in NodeJS](https://medium.freecodecamp.org/how-to-build-a-cli-tool-in-nodejs-bc4f67d898ec)