Sha256: c22c0600a7261081778fd7ef36e155c123a1fb402d306e659c4b58d3708f78c9

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8

require 'space2underscore'

CREATE_FLAGS = %w(-c --create)

args = ARGV.reject { |arg| CREATE_FLAGS.include?(arg) }
underscore_include_sentence = Space2underscore.convert(args)

if ARGV.empty?
  puts Space2underscore.usage
else
  if ARGV.include?('-c') || ARGV.include?('--create')
    Space2underscore.create_new_branch(underscore_include_sentence)
  else
    puts underscore_include_sentence
  end
end

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
space2underscore-0.4.1 bin/s2u
space2underscore-0.4.1 bin/space2underscore
space2underscore-0.4.0 bin/s2u
space2underscore-0.4.0 bin/space2underscore