Sha256: 199cd90576740251b24cd70acd15acbc650f0f9cf4c369b2e810ae9cf9cb81dd

Contents?: true

Size: 1.06 KB

Versions: 23

Compression:

Stored size: 1.06 KB

Contents

#!/usr/bin/env ruby
# 1.9 adds realpath to resolve symlinks; 1.8 doesn't
# have this method, so we add it so we get resolved symlinks
# and compatibility
unless File.respond_to? :realpath
  class File #:nodoc:
    def self.realpath path
      return realpath(File.readlink(path)) if symlink?(path)
      path
    end
  end
end
$: << File.expand_path(File.dirname(File.realpath(__FILE__)) + '/../lib')
require 'rubygems'
require 'gli'
require 'git_reflow'

include GLI::App

program_desc 'Git Reflow manages your git workflow.'

version GitReflow::VERSION

commands_from 'git_reflow/commands'

pre do |global,command,options,args|
  # Pre logic here
  # Return true to proceed; false to abourt and not call the
  # chosen command
  # Use skips_pre before a command to skip this block
  # on that command only
  true
end

post do |global,command,options,args|
  # Post logic here
  # Use skips_post before a command to skip this
  # block on that command only
end

on_error do |exception|
  # Error logic here
  # return false to skip default error handling
  true
end

exit run(ARGV)

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
git_reflow-0.6.7 bin/git-reflow
git_reflow-0.6.6 bin/git-reflow
git_reflow-0.6.5 bin/git-reflow
git_reflow-0.6.4 bin/git-reflow
git_reflow-0.6.3 bin/git-reflow
git_reflow-0.6.2 bin/git-reflow
git_reflow-0.6.1 bin/git-reflow
git_reflow-0.6.0 bin/git-reflow
git_reflow-0.5.3 bin/git-reflow
git_reflow-0.5.2 bin/git-reflow
git_reflow-0.5.1 bin/git-reflow
git_reflow-0.5.0 bin/git-reflow
git_reflow-0.4.2 bin/git-reflow
git_reflow-0.4.1 bin/git-reflow
git_reflow-0.4.0 bin/git-reflow
fb-git_reflow-0.3.6 bin/git-reflow
git_reflow-0.3.5 bin/git-reflow
git_reflow-0.3.4 bin/git-reflow
git_reflow-0.3.3 bin/git-reflow
git_reflow-0.3.2 bin/git-reflow