Sha256: 61d3f83226fea5a57366d2315c18221fdfa78ab2fd6ba06786b7222864b786b7

Contents?: true

Size: 581 Bytes

Versions: 2

Compression:

Stored size: 581 Bytes

Contents

#!/usr/bin/ruby

require "rubygems"
require "readline"
require_relative "../lib/git_presenter"

if ARGV[0] == "init"
  GitPresenter.initialise_presentation(Dir.pwd)
  puts "Presentation has been initalised"
  puts "run 'git-presenter start' to begin the presentation"
elsif ARGV[0] == "start"
  presenter = GitPresenter.start_presentation(Dir.pwd)
  puts presenter.current_slide

  while command = Readline.readline(presenter.status_line, true)
    result = presenter.execute(command)
    exit if result == :exit
    puts result
  end
else
  puts "what you talkin bout willis"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git_presenter-0.2.1 bin/git-presenter
git_presenter-0.2.0 bin/git-presenter