Sha256: ad0f95979c43ba72de3d98e8851a9804efd85ce48407f2ed6cd5450117f82913

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

module Gitmine
  class CLI
    def self.run
      case ARGV[0]
      when nil
        list
      when "branch"
        branch
      else
        puts <<-EOS
  Usage:
  gitmine: show the 10 latest commits and their associated issue status
  gitmine branch [BRANCH_NAME]: create a new branch
  EOS
      end
    end

    def self.list
      Gitmine.list
    end

    def self.branch
      Gitmine.branch(ARGV[1])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gitmine-0.1.4.pre.1 lib/gitmine/cli.rb
gitmine-0.1.4.pre lib/gitmine/cli.rb