class GitLog::CLI

Public Instance Methods

all() click to toggle source
# File lib/gitlog/cli.rb, line 25
def all
        grouping = :type_wise
    if options[:scopewise]
       grouping = :scope_wise
    end
    puts GitLog::Log.generate_log(options[:date], grouping, options[:author], options[:current_branch])
end
my() click to toggle source
# File lib/gitlog/cli.rb, line 11
def my
        grouping = :type_wise
    if options[:scopewise]
       grouping = :scope_wise
    end
    puts GitLog::Log.generate_log(options[:date], grouping, nil, options[:current_branch])
end
range() click to toggle source
# File lib/gitlog/cli.rb, line 39
def range
        from = options[:from]
        if from.nil?
      from = ask('From Commit:')
    end
    to = options[:to]
    if to.nil?
      to = ask('To Commit:')
    end

    grouping = :type_wise
    if options[:scopewise]
       grouping = :scope_wise
    end
        puts GitLog::Log.log_between_commits(to, from, grouping, options[:author])
end