Sha256: 99ac67629efdefa6ee599976043a5dc8a1e4658df4f1091e5d0684eb8598230f
Contents?: true
Size: 797 Bytes
Versions: 73
Compression:
Stored size: 797 Bytes
Contents
# frozen_string_literal: true require "rails/source_annotation_extractor" module Rails module Command class NotesCommand < Base # :nodoc: class_option :annotations, aliases: "-a", desc: "Filter by specific annotations, e.g. Foobar TODO", type: :array def perform(*) require_application_and_environment! display_annotations end private def display_annotations annotations = options[:annotations] || Rails::SourceAnnotationExtractor::Annotation.tags tag = (annotations.length > 1) Rails::SourceAnnotationExtractor.enumerate annotations.join("|"), tag: tag, dirs: directories end def directories Rails::SourceAnnotationExtractor::Annotation.directories end end end end
Version data entries
73 entries across 68 versions & 7 rubygems