2.4.2 • Published 3 years ago

todo.json-cli v2.4.2

Weekly downloads
41
License
GPL-3.0
Repository
github
Last release
3 years ago

todo.json-cli

Version License

Command line todo management app for todo.json written in Node.js.

Installation

npm i -g todo.json-cli

Usage

$ npm install -g todo.json-cli
$ td COMMAND
running command...
$ td (-v|--version|version)
todo.json-cli/2.4.2 linux-x64 node-v15.7.0
$ td --help [COMMAND]
USAGE
  $ td COMMAND
...

Commands

td add [TEXT]

Add a new task

USAGE
  $ td add [TEXT]

OPTIONS
  -P, --priority=priority  priority (A-Z)
  -c, --context=context    one or more contexts
  -d, --due=due            due date
  -h, --help               show CLI help
  -p, --project=project    one or more projects

EXAMPLES
  $ td add Hello World
  $ td add "Hello World" -p test -p greeting -c test --due 2020-12-24

See code: src/commands/add.ts

td autocomplete DIR

Install completion file

USAGE
  $ td autocomplete DIR

ARGUMENTS
  DIR  Install completion files to specific directory

OPTIONS
  -h, --help  show CLI help
  --zsh       Install zsh completion

EXAMPLE
  $ td autocomplete --zsh ~/.zsh_completion

See code: src/commands/autocomplete.ts

td do [ID...]

Mark tasks as done

USAGE
  $ td do [ID...]

ARGUMENTS
  ID...  mark specific tasks as done

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ td do 1

See code: src/commands/do.ts

td help [COMMAND]

display help for td

USAGE
  $ td help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

td ls

List tasks

USAGE
  $ td ls

OPTIONS
  -D, --done               list only done tasks
  -P, --priority=priority  priority (A-Z)
  -a, --all                list all tasks including done ones
  -c, --context=context    filter tasks by specific contexts
  -h, --help               show CLI help
  -p, --project=project    filter tasks by specific projects
  --and-contexts           filter contexts using AND operator instead of OR
  --and-projects           filter projects using AND operator instead of OR
  --without-contexts       list tasks without contexts
  --without-projects       list tasks without projects

EXAMPLES
  $ td ls
  $ td ls -p test

See code: src/commands/ls.ts

td lsctx

List contexts

USAGE
  $ td lsctx

OPTIONS
  -D, --done  list contexts of only done tasks
  -a, --all   list contexts of all tasks including done ones
  -h, --help  show CLI help

EXAMPLES
  $ td lsctx
  $ td lsctx -a

See code: src/commands/lsctx.ts

td lsid

List IDs

USAGE
  $ td lsid

OPTIONS
  -D, --done  list IDs of only done tasks
  -h, --help  show CLI help

EXAMPLES
  $ td lsid
  $ td lsid -D

See code: src/commands/lsid.ts

td lsproj

List projects

USAGE
  $ td lsproj

OPTIONS
  -D, --done  list projects of only done tasks
  -a, --all   list projects of all tasks including done ones
  -h, --help  show CLI help

EXAMPLES
  $ td lsproj
  $ td lsproj -a

See code: src/commands/lsproj.ts

td modify [ID...]

Modify tasks

USAGE
  $ td modify [ID...]

ARGUMENTS
  ID...  modify specific tasks

OPTIONS
  -D, --done               modify done tasks
  -P, --priority=priority  modify priority
  -c, --context=context    modify contexts
  -d, --due=due            modify due date
  -h, --help               show CLI help
  -p, --project=project    modify projects
  -t, --text=text          modify text
  --delete-contexts        delete contexts
  --delete-due             delete due date
  --delete-priority        delete priority
  --delete-projects        delete projects

EXAMPLES
  $ td modify 1 --due 2020-12-12
  $ td modify 2 3 -p projA -p projB
  $ td modify 1 --text "New description" --done

See code: src/commands/modify.ts

td restore

Undo the last modification in todo.json/done.json using the bak file

USAGE
  $ td restore

OPTIONS
  -D, --done   restore done.json
  -f, --force  force overwriting without confirmation
  -h, --help   show CLI help

EXAMPLES
  $ todo restore
  $ todo restore -f --done

See code: src/commands/restore.ts

td rm [ID...]

Delete tasks

USAGE
  $ td rm [ID...]

ARGUMENTS
  ID...  delete specific tasks

OPTIONS
  -D, --done  delete done tasks
  -h, --help  show CLI help

EXAMPLE
  $ todo rm 1

See code: src/commands/rm.ts

td undo [ID...]

Undo tasks

USAGE
  $ td undo [ID...]

ARGUMENTS
  ID...  undo specific done tasks

OPTIONS
  -h, --help  show CLI help

EXAMPLE
  $ todo undo 1 2

See code: src/commands/undo.ts

2.4.2

3 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.0

3 years ago