Sha256: 3b85fd8e29f833a552eb721e5ab972fcd40ec1e4772c01c377e0da70e8596dab
Contents?: true
Size: 804 Bytes
Versions: 4
Compression:
Stored size: 804 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, default: Rails::SourceAnnotationExtractor::Annotation.tags def perform(*) require_application_and_environment! display_annotations end private def display_annotations annotations = options[:annotations] 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
4 entries across 4 versions & 1 rubygems