Skip to content

dineshr93/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo

TODO CLI APP

Description

This is intended for managing the tasks locally. By default uses $HOME/.todo.json file to store the data. (you can change this using --config option any time)

Sample

Sample

Getting Started

Contains following commands

  1. Add (todo add) — supports --priority low|medium|high
  2. List (todo ls)
  3. Edit (todo edit) — change task text or priority
  4. Search (todo search) — filter by keyword
  5. Delete (supports space separated multiple params) (todo delete)
  6. Mark Complete (supports space separated multiple params) (todo complete)
  7. Mark Pending (supports space separated multiple params) (todo pending)

Dependencies

  • Cobra
  • Viper
  • Simple table

Installing

Choose appropriate binary releases

  • Rename the binary to 'todo'.
  • Add the binary to your environment path and use it.

Executing program

COMMAND FORMAT:
todo add "project - task - jiraLink"
todo add "YOUR_PROJECT_NAME - TASK_NAME - http://www.yourcompany.jira.com"
todo add --priority high "project - task - jiraLink"

todo edit 1 "updated project - updated task - new Jira link"
todo edit 1 --priority medium
todo edit 2 "new task text" --priority low

todo search "project-name"

todo complete 1
<!-- you can also mark multiple tasks to mark complete by passing space separated ids  -->
todo complete 1 2 ..

todo pending 1
<!-- you can also mark multiple tasks back to mark pending by passing space separated ids  -->
todo pending 1 2 ..

todo delete 1
<!-- you can also mark multiple tasks for deletion by passing space separated ids  -->
todo delete 1 2 ..

Help

>todo -h

        TODO CLI APP (for issue -> https://github.com/dineshr93/todo/issues)

1. Add (todo add)
2. List (todo ls)
3. Edit (todo edit)
4. Search (todo search)
5. Delete (supports space separated multiple params) (todo delete)
6. Mark Complete (supports space separated multiple params) (todo complete)
7. Mark Pending (supports space separated multiple params) (todo pending)

Usage:
  todo [command]

Available Commands:
  add         Add a todo. Format: Project - Task - JIRA link
  complete    Mark a task as completed (supports space separated multiple params)
  delete      Delete a task from the list (supports space separated multiple params)
  edit        Edit a todo item's task text or priority
  help        Help about any command
  ls          List all todos
  pending     Mark a task as pending (supports space separated multiple params)
  search      Search todos by keyword

Flags:
      --config string   config file (default is $HOME/.todo.json)
  -h, --help            help for todo

Use "todo [command] --help" for more information about a command.

Authors

Dinesh Ravi

Version History

  • 1.0.0
    • Initial Release
  • 2.0.0
    • Added edit, search commands
    • Added priority support
    • Fixed config file name to .todo.json
    • Fixed DeleteSA sorting bug
    • Fixed error handling in CompleteSA/PendingSA
    • Replaced deprecated ioutil with os package
    • Code cleanup

License

This project is licensed under the Apache License 2.0 or GPL-3.0 - see the LICENSE file for details

Acknowledgments

About

A Todo utility for managing tasks

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors