Sha256: 64408c1d4ff80e14d45a27ae9ec2933c71294d66a23432c6a87afe1d09308b11

Contents?: true

Size: 896 Bytes

Versions: 1

Compression:

Stored size: 896 Bytes

Contents

#!/usr/bin/ruby

require 'notes-cli'

if ARGV.any? { |arg| ["-h", "--help"].include?(arg) }
  puts %Q{\
Recursively search source files for annotations. Default annotations are TODO, OPTIMIZE, and FIXME.

Usage: notes [DIRECTORY=. | FILENAMES] [-f FLAGS] [-e EXCLUDES]

Options:
  -f, --flags    # List of custom annotations, ex: '-f broken refactor' (case insensitive)
  -e, --exclude  # List of directories to ignore, ex: '-e tmp/ log/'
  -h, --help     # Display this menu

Examples:
  notes                 # Show default annotations for all files in current directory (default)
  notes app/ -f broken  # Only examine files in the app/ directory and add the 'broken' flag
  notes app/ -e logs/   # Show default annotations for files in app/ directory, excluding files in logs/
  notes one.rb two.rb   # Show default annotations for one.rb and two.rb

}
  exit(0)
end

Notes::CLI.new.find_all

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notes-cli-1.1.0 bin/notes