todo

command module
v0.0.0-...-df6f3e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 1 Imported by: 0

README

todo

Use:

By default, it will run with configuration set in config.json

$ todo

┌── Todo ──────────────────────────────────────────────────────────────┐
│                                                                      │
│   1.   main.go:20        remove debug code after testing             │
│   2.   other.go:6        include variable image sizes in export      │
│   3.   test/test.go:68   add test cases for resizing and bordering   │
│                                                                      │
└──────────────────────────────────────────────────────────────────────┘

Flags:

  • -r: use relative paths (overrides config)
  • -d: specify directory
  • -p: specify prefix (overrides config)
  • -t: print todos as raw text without formatting

Options:

  • --help: display help info
  • --version: print version

Example:

$ todo -r -pTODO -dsome_dir

Commands

rm

Remove a todo from a file (removes the line the todo is located at). The list index is the number on the left of the list item when printing (starts at 1).

todo rm <list_index>

Config

You can add a config.json file in the same directory as the todo binary. If no config file is found then default options will be used. These are the config options you can put in you config file:

// These are also the default values
{
    "prefix": "Todo:",
    // Max search depth
    "depth": 5,
    "relativePaths": false,
    // Ignored file extensions (exe, png etc)
    "ignoreFiles": [],
    // Ignored directories (.vscode, .git etc)
    "ignoreDirs": []
}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL