Sha256: 34732c793333701f807872b0dcf465230e689e46a6b7a519618bfa01e11faa04

Contents?: true

Size: 561 Bytes

Versions: 3

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

require 'git_topic/formatter/branches'
require 'git_topic/formatter/topics'

module GitTopic
  module Commands
    # list command shows summarized topic information
    class List
      def initialize(options = {})
        @options = options
        @all = options[:all]
      end

      def execute
        branches = ::GitTopic::Formatter::Branches.new @options
        branches.print
        return unless @all
        puts ''
        topics = ::GitTopic::Formatter::Topics.new
        topics.print
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
git_topic-0.4.0 lib/git_topic/commands/list.rb
git_topic-0.3.3 lib/git_topic/commands/list.rb
git_topic-0.3.0 lib/git_topic/commands/list.rb