Sha256: 409d148e48235d434938cf0c80ba40d44f54ca760174baf536edca4478438207

Contents?: true

Size: 299 Bytes

Versions: 2

Compression:

Stored size: 299 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.include?('-c') || ARGV.include?('--create')
  Space2underscore.create_new_branch(result)
else
  print result
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
space2underscore-0.3.2 bin/space2underscore
space2underscore-0.3.1 bin/space2underscore