Sha256: 0b75c39f8001addeee1eedee85166064c502e6f7dbad6480e5629b7917b7726a

Contents?: true

Size: 364 Bytes

Versions: 8

Compression:

Stored size: 364 Bytes

Contents

#!/usr/bin/env ruby
require 'space2underscore'

CREATE_FLAGS = %w(-c --create)

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

if ARGV.empty?
  Space2underscore.print_usage
else
  if ARGV.include?('-c') || ARGV.include?('--create')
    Space2underscore.create_new_branch(result)
  else
    print result
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
space2underscore-0.3.6 bin/s2u
space2underscore-0.3.6 bin/space2underscore
space2underscore-0.3.5 bin/s2u
space2underscore-0.3.5 bin/space2underscore
space2underscore-0.3.4 bin/s2u
space2underscore-0.3.4 bin/space2underscore
space2underscore-0.3.3 bin/s2u
space2underscore-0.3.3 bin/space2underscore