0.3.1 • Published 3 years ago

tod-cli v0.3.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Tod cli

Install

Requirements

Tod is writted in JavaScript and you need to NodeJs, NPM or Yarn and GIT

Global install

Global installation with npm

npm install -g tod-cli

Glocal installation with yarn

yarn global add tod-cli

Has project dependencies

Installation with npm

npm install --save-dev tod-cli

Installation with yarn

yarn add --dev tod-cli

Then you need to edit your package.json to add new script

{
  "scripts": {
    "tod": "tod"
  }
}

and now you can execute tod commande from your prefered tool

Main concepts

TOD is currently higly dependent about GIT. You will see frequently in the documentation some words like context or identifier.

In the GIT project TOD associate a branch as context. Then if you change your current branch your are changing your current TOD's context.

All system store file in idependants file to avoid merge difficultes in a GIT project. When we are talking about identifier, it refer to the file name. This file name is an SHA1 string to avoid file conlision names and like GIT, you dont need to add the entire identifier to identify the task you want modify or delete.

Commands

init - project kickstart

tod init

Init tod project by create the project's folder architecture.

add - create a new todo

tod add [options] <description...>

By default the new todo is created into current context. By passing the option -b or --backlog, the new todo will be created into the backlog.

x - mark task as complete

tod x <identifier>

Is not possible to mark as complet a backlog task. Only contextualised task should be mark as complete.

rm - Delete task

tod rm [options] <identifier>

By default rm try to delete into the current context. By passing the option -b or --backlog, tod will try to delete the task from the backlog.

mv - move a task from Baklog to current context.

tod mv [options] <identifier>

With the option -b or --backlog, is it possible to move a task from the current context to the backlog.

resolve - close a context

tod resolve <context>

Delete all task off this context and delete the context folder.

export - export tod database

tod export <outputFile>

Export the tod database into an output json file.