Git Product home page Git Product logo

git-todo's Introduction

git-todo

Simple JavaScript script for finding all files that have inline todo statements.

Usage

// file.js
(function yourStuff(){
	
	// todo(ibolmo): Simple todo.
	otherCode();
	
	/* todo(ibolmo, 0.1.0): Should get this done before this milestone. */
	
})();

Take a look at git-todo for more examples at the bottom of the file.

Features

  • Simple (yes that is a feature) one line call
  • Outputs each todo categorized by milestone (second argument to the todo) in descending order (most important is closet to your prompt.

Installation

git clone https://github.com/ibolmo/git-todo.git
ln -s $(pwd)/git-todo/git-todo ~/bin/git-todo 
chmod +x git-todo/git-todo

Requirements

  • Node.JS (tested with v0.4.8)

Usage

~/Sources/ > cd git-todo
~/Sources/git-todo (master) > cat git-todo  # (notice all the todos?)
~/Sources/git-todo (master) > git todo
  Don't need to use #                             ./git-todo 
  Arbitrary spacing                               ./git-todo 
  Any person                                      ./git-todo 
  uppercase is fine too                           ./git-todo 
  Supports old syntax                             ./git-todo 
  Supports multiline                              ./git-todo 
  Multiline, inlined */                           ./git-todo 
  Simple todo.                                    ./README.md

2.0
  Any major milestone.                            ./git-todo 

1.1
  Any minor milestone.                            ./git-todo 

1.0.1
  Reports in correct order (by asc milestone)     ./git-todo 

1.0
  Supports milestones                             ./git-todo 

0.1
  Nesting limit                                   ./git-todo 
  Line numbers                                    ./git-todo 

0.1.0
  Should get this done before this milestone. */  ./README.md

F.A.Q's

  1. Why are you using the git-*? Because I heart git. If you don't use git, just alias todo=git-todo in ~/.bash_profile. If you love git, though, then just add git-todo to your PATH and you can git todo at your leisure. You can also add the post-hook script in the hooks directory to output all the todos after every commit.

git-todo's People

Contributors

ibolmo avatar madhusudancs avatar mjhoy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

git-todo's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.